当前页面:
在线文档首页 >
NetBeans API Javadoc 5.5.1
PackageRenameHandler (NetBeans Java Project API) - NetBeans API Javadoc 5.5.1
org.netbeans.spi.java.project.support.ui
Interface PackageRenameHandler
public interface PackageRenameHandler
This handler is used by PackageViewChildren.PackageNode.setName() method.
PackageNode.setName() uses Lookup.getDefault() to lookup for instances of
packageRenameHandler. If there is one instance found, it's handleRename(...)
method is called to handle rename request. More than one instance of
PackageRenameHandler is not allowed.
- Since:
- 1.5
handleRename
void handleRename(Node node,
String newName)
throws IllegalArgumentException
- Parameters:
node
- on this node rename was requestednewName
- new name of node
- Throws:
IllegalArgumentException
- thrown if rename cannot be performed