Interface MoveOperationImplementation
- All Superinterfaces:
DataFilesProviderImplementation
- All Known Subinterfaces:
MoveOrRenameOperationImplementation
Project Rename/Move Operation. Allows to gather information necessary for project
move and also provides callbacks to the project type to handle special
checkpoints during the delete.
An implementation of this interface may be registered in the project's lookup to support
move operation in the following cases:
- The project type wants to use
DefaultProjectOperations
to perform the rename/move operation. - If this project may be part of of a compound project (like EJB project is a part of a J2EE project), and the compound project wants to rename/move all the sub-projects.
Implementations are encouraged to implement MoveOrRenameOperationImplementation
instead.
- Since:
- 1.7
-
Method Summary
Modifier and TypeMethodDescriptionvoid
notifyMoved
(Project original, File originalPath, String nueName) Notification that the move operation has finished.void
Pre-move notification.Methods inherited from interface org.netbeans.spi.project.DataFilesProviderImplementation
getDataFiles, getMetadataFiles
-
Method Details
-
notifyMoving
Pre-move notification. The exact meaning is left on the project implementors, but typically this means to undeploy the application and remove all artifacts created by the build project.- Throws:
IOException
- if an I/O operation fails.- See Also:
-
notifyMoved
Notification that the move operation has finished. Is supposed to fix the newly created (moved) project into the correct state (including changing its display name to nueName) and callProjectState.notifyDeleted()
on the original project. Should be called on both original and newly created project (in this order).- Parameters:
original
-null
when called on the original project, the original project when called on the new projectoriginalPath
- the project folder of the original projectnueName
- new name for the newly created project.- Throws:
IOException
- if an I/O operation fails.- See Also:
-