org.netbeans.modules.projectapi/1 1.36.1

org.netbeans.spi.project
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 Summary
 void notifyRenamed(String nueName)
          Notification that the rename operation has finished.
 void notifyRenaming()
          Pre-rename notification.
 
Methods inherited from interface org.netbeans.spi.project.MoveOperationImplementation
notifyMoved, notifyMoving
 
Methods inherited from interface org.netbeans.spi.project.DataFilesProviderImplementation
getDataFiles, getMetadataFiles
 

Method Detail

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

org.netbeans.modules.projectapi/1 1.36.1

Built on December 5 2011.  |  Portions Copyright 1997-2011 Sun Microsystems, Inc. All rights reserved.