|
org.netbeans.modules.projectapi/1 1.9.31 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.netbeans.spi.project.support.ProjectOperations
public final class ProjectOperations
Allows gathering information for various project operations.
Method Summary | |
---|---|
static List |
getDataFiles(Project prj)
Return list of files that are considered source files and folders for the given project. |
static List |
getMetadataFiles(Project prj)
Return list of files that are considered metadata files and folders for the given project. |
static boolean |
isCopyOperationSupported(Project prj)
Test whether the copy operation is supported on the given project. |
static boolean |
isDeleteOperationSupported(Project prj)
Test whether the delete operation is supported on the given project. |
static boolean |
isMoveOperationSupported(Project prj)
Test whether the move operation is supported on the given project. |
static void |
notifyCopied(Project original,
Project nue,
File originalPath,
String name)
Notification that the project has been copied. |
static void |
notifyCopying(Project prj)
Notification that the project is about to be copyied. |
static void |
notifyDeleted(Project prj)
Notification that the project has been deleted. |
static void |
notifyDeleting(Project prj)
Notification that the project is about to be deleted. |
static void |
notifyMoved(Project original,
Project nue,
File originalPath,
String name)
Notification that the project has been moved. |
static void |
notifyMoving(Project prj)
Notification that the project is about to be moved. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static List getMetadataFiles(Project prj)
is*Supported
methods
return true
.
prj
- project to test
public static List getDataFiles(Project prj)
is*Supported
methods
return true
.
prj
- project to test
public static boolean isDeleteOperationSupported(Project prj)
prj
- project to test
true
if the project supports delete operation,
false
otherwisepublic static void notifyDeleting(Project prj) throws IOException
prj
- project to notify
IOException
- is some error occurspublic static void notifyDeleted(Project prj) throws IOException
prj
- project to notify
IOException
- is some error occurspublic static boolean isCopyOperationSupported(Project prj)
prj
- project to test
true
if the project supports the copy operation,
false
otherwisepublic static void notifyCopying(Project prj) throws IOException
prj
- project to notify
IOException
- is some error occurspublic static void notifyCopied(Project original, Project nue, File originalPath, String name) throws IOException
original
- original projectnue
- new project (copy)originalPath
- the project folder of the original project (for consistency with notifyMoved)name
- new name of the project
IOException
- is some error occurspublic static void notifyMoving(Project prj) throws IOException
prj
- project to notify
IOException
- is some error occurspublic static void notifyMoved(Project original, Project nue, File originalPath, String name) throws IOException
original
- original projectnue
- moved projectoriginalPath
- the project folder of the original projectname
- new name of the project
IOException
- is some error occurspublic static boolean isMoveOperationSupported(Project prj)
prj
- project to test
true
if the project supports the move operation,
false
otherwise
|
org.netbeans.modules.projectapi/1 1.9.31 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |