Interface MoveOrRenameOperationImplementation

All Superinterfaces:
DataFilesProviderImplementation, MoveOperationImplementation

public interface MoveOrRenameOperationImplementation extends MoveOperationImplementation
A preferred substitute for MoveOperationImplementation to be used when the project can behave more simply, efficiently, and robustly when it is simply being renamed (code and/or display name) without actually being moved to a new location. In this case, MoveOperationImplementation.notifyMoving() and MoveOperationImplementation.notifyMoved(org.netbeans.api.project.Project, java.io.File, java.lang.String) will not be called.
Since:
org.netbeans.modules.projectapi/1 1.31
  • Method Details

    • notifyRenaming

      void notifyRenaming() throws IOException
      Pre-rename notification. The exact meaning is left to the project's implementation; it might for example undeploy an application and remove all artifacts created by the build, in case they used the old name.
      Throws:
      IOException - if an I/O operation fails
    • notifyRenamed

      void notifyRenamed(String nueName) throws IOException
      Notification that the rename operation has finished. The project might for example change its display name in metadata.
      Parameters:
      nueName - new name for the project
      Throws:
      IOException - if an I/O operation fails