站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > NetBeans API Javadoc 5.0.0

MoveOperationImplementation (NetBeans Project API) - NetBeans API Javadoc 5.0.0

 

org.netbeans.spi.project
Interface MoveOperationImplementation

All Superinterfaces:
DataFilesProviderImplementation

public interface MoveOperationImplementation
extends DataFilesProviderImplementation

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 is not required to put an implementation of this interface into the project's lookup if the above two cases should not be supported.

Since:
1.7

Method Summary
 void notifyMoved(Project original, File originalPath, String nueName)
          Notification that the move operation has finished.
 void notifyMoving()
          Pre-move notification.
 
Methods inherited from interface org.netbeans.spi.project.DataFilesProviderImplementation
getDataFiles, getMetadataFiles
 

Method Detail

notifyMoving

public void notifyMoving()
                  throws IOException
Pre-move notification. The exact meaning is left on the project implementors, but typically this means to undeloy the application and remove all artifacts created by the build project.

Throws:
IOException - if an I/O operation fails.

notifyMoved

public void notifyMoved(Project original,
                        File originalPath,
                        String nueName)
                 throws IOException
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 call ProjectState.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 project
originalPath - the project folder of the original project
nueName - new name for the newly created project.
Throws:
IOException - if an I/O operation fails.

 

Built on May 3 2007.  |  Portions Copyright 1997-2005 Sun Microsystems, Inc. All rights reserved.