|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.netbeans.spi.project.ui.support.DefaultProjectOperations
Support class to allow the project type implementors to perform ProjectOperations
by simply calling a method in this class. Each method in this class provides a default
confirmation dialog and default behavior.
If the project type requires a different behavior of an operation, it is required to provide its
own implementation of the operation.
Method Summary | |
static void |
performDefaultCopyOperation(Project p)
Perform default copy operation. |
static void |
performDefaultDeleteOperation(Project p)
Perform default delete operation. |
static void |
performDefaultMoveOperation(Project p)
Perform default move operation. |
static void |
performDefaultRenameOperation(Project p,
String newName)
Perform default rename operation. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static void performDefaultDeleteOperation(Project p) throws IllegalArgumentException
p
- project to delete
IllegalArgumentException
- if
p == null
or
if org.netbeans.api.projects.ProjectOperations.isDeleteOperationSupported
returns false for this project.public static void performDefaultCopyOperation(Project p) throws IllegalArgumentException
p
- project to copy
IllegalArgumentException
- if
p == null
or
org.netbeans.api.projects.ProjectOperations.isCopyOperationSupported
returns false for this project.public static void performDefaultMoveOperation(Project p) throws IllegalArgumentException
p
- project to move
IllegalArgumentException
- if
p == null
or
org.netbeans.api.projects.ProjectOperations.ismoveOperationSupported
returns false for this project.public static void performDefaultRenameOperation(Project p, String newName) throws IllegalStateException
p
- project to movenewName
- new project's name or null
IllegalArgumentException
- if
p == null
or
org.netbeans.api.projects.ProjectOperations.ismoveOperationSupported
returns false for this project.
IllegalStateException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |