public final class DefaultProjectOperations extends Object
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.Modifier and Type | Method and Description |
---|---|
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.
|
public static void performDefaultDeleteOperation(Project p) throws IllegalArgumentException
p
- project to deleteIllegalArgumentException
- if
p == null
or
if ProjectOperations.isDeleteOperationSupported(org.netbeans.api.project.Project)
returns false for this project.public static void performDefaultCopyOperation(Project p) throws IllegalArgumentException
p
- project to copyIllegalArgumentException
- if
p == null
or
ProjectOperations.isCopyOperationSupported(org.netbeans.api.project.Project)
returns false for this project.public static void performDefaultMoveOperation(Project p) throws IllegalArgumentException
p
- project to moveIllegalArgumentException
- if
p == null
or
ProjectOperations.isMoveOperationSupported(org.netbeans.api.project.Project)
returns false for this project.public static void performDefaultRenameOperation(Project p, String newName) throws IllegalArgumentException
p
- project to movenewName
- new project's name or nullIllegalArgumentException
- if
p == null
or
ProjectOperations.isMoveOperationSupported(org.netbeans.api.project.Project)
returns false for this project.