Package | Description |
---|---|
org.netbeans.api.project |
General API for finding and manipulating all kinds of projects.
|
org.netbeans.spi.project |
Support for defining project types.
|
org.netbeans.spi.project.support |
Modifier and Type | Method and Description |
---|---|
Project |
ProjectManager.findProject(FileObject projectDirectory)
Find an open project corresponding to a given project directory.
|
static Project |
FileOwnerQuery.getOwner(FileObject file)
Find the project, if any, which "owns" the given file.
|
static Project |
FileOwnerQuery.getOwner(URI uri)
Find the project, if any, which "owns" the given URI.
|
Project |
ProjectInformation.getProject()
Get the associated project.
|
Modifier and Type | Method and Description |
---|---|
Set<Project> |
ProjectManager.getModifiedProjects()
Get a list of all projects which are modified and need to be saved.
|
Modifier and Type | Method and Description |
---|---|
static SourceGroup |
SourceGroupModifier.createSourceGroup(Project project,
String type,
String hint)
Creates a
SourceGroup in the given Project of the given type and hint. |
static SourceGroupModifier.Future |
SourceGroupModifier.createSourceGroupFuture(Project project,
String type,
String hint)
Creates a
SourceGroupModifier.Future object
that is capable of lazily creating SourceGroup in the given Project of the given type and hint. |
static AuxiliaryConfiguration |
ProjectUtils.getAuxiliaryConfiguration(Project project)
Find a way of storing extra configuration in a project.
|
static FileObject |
ProjectUtils.getCacheDirectory(Project project,
Class<?> owner)
Gets a directory in which modules may store arbitrary extra unversioned files
associated with a project.
|
static ProjectInformation |
ProjectUtils.getInformation(Project p)
Get basic information about a project.
|
static Preferences |
ProjectUtils.getPreferences(Project project,
Class clazz,
boolean shared)
Return
Preferences for the given project and given module. |
static Sources |
ProjectUtils.getSources(Project p)
Get a list of sources for a project.
|
static boolean |
ProjectUtils.hasSubprojectCycles(Project master,
Project candidate)
Check whether a project has, or might have, cycles in its subproject graph.
|
boolean |
ProjectManager.isModified(Project p)
Check whether a given project is current modified.
|
boolean |
ProjectManager.isValid(Project p)
Checks whether a project is still valid.
|
static void |
FileOwnerQuery.markExternalOwner(FileObject root,
Project owner,
int algorithm)
Mark an external folder or file as being owned by a particular project.
|
static void |
FileOwnerQuery.markExternalOwner(URI root,
Project owner,
int algorithm)
Mark an external URI (folder or file) as being owned by a particular project.
|
void |
ProjectManager.saveProject(Project p)
Save one project (if it was in fact modified).
|
Modifier and Type | Method and Description |
---|---|
Project |
FileOwnerQueryImplementation.getOwner(FileObject file)
Decide which project, if any, "owns" a given file.
|
Project |
FileOwnerQueryImplementation.getOwner(URI file)
Decide which project, if any, "owns" a given file.
|
Project |
ProjectFactory.loadProject(FileObject projectDirectory,
ProjectState state)
Create a project that resides on disk.
|
Modifier and Type | Method and Description |
---|---|
Set<? extends Project> |
SubprojectProvider.getSubprojects()
Get a set of projects which this project can be considered to depend upon somehow.
|
Modifier and Type | Method and Description |
---|---|
Image |
ProjectIconAnnotator.annotateIcon(Project p,
Image original,
boolean openedNode)
Makes any changes to a project's icon.
|
void |
CopyOperationImplementation.notifyCopied(Project original,
File originalPath,
String nueName)
Notification that the copy operation has finished.
|
void |
MoveOperationImplementation.notifyMoved(Project original,
File originalPath,
String nueName)
Notification that the move operation has finished.
|
void |
ProjectFactory.saveProject(Project project)
Save a project to disk.
|
Modifier and Type | Method and Description |
---|---|
static Sources |
GenericSources.genericOnly(Project p)
Lists only one source folder group, of
Sources.TYPE_GENERIC ,
containing the project directory, as by GenericSources.group(org.netbeans.api.project.Project, org.openide.filesystems.FileObject, java.lang.String, java.lang.String, javax.swing.Icon, javax.swing.Icon) . |
static List<FileObject> |
ProjectOperations.getDataFiles(Project prj)
Return list of files that are considered source files and folders for the given project.
|
static List<FileObject> |
ProjectOperations.getMetadataFiles(Project prj)
Return list of files that are considered metadata files and folders for the given project.
|
static SourceGroup |
GenericSources.group(Project p,
FileObject rootFolder,
String name,
String displayName,
Icon icon,
Icon openedIcon)
Default kind of source folder group.
|
static boolean |
ProjectOperations.isCopyOperationSupported(Project prj)
Test whether the copy operation is supported on the given project.
|
static boolean |
ProjectOperations.isDeleteOperationSupported(Project prj)
Test whether the delete operation is supported on the given project.
|
static boolean |
ProjectOperations.isMoveOperationSupported(Project prj)
Tests whether the move or rename operations are supported on the given project.
|
static void |
ProjectOperations.notifyCopied(Project original,
Project nue,
File originalPath,
String name)
Notification that the project has been copied.
|
static void |
ProjectOperations.notifyCopying(Project prj)
Notification that the project is about to be copyied.
|
static void |
ProjectOperations.notifyDeleted(Project prj)
Notification that the project has been deleted.
|
static void |
ProjectOperations.notifyDeleting(Project prj)
Notification that the project is about to be deleted.
|
static void |
ProjectOperations.notifyMoved(Project original,
Project nue,
File originalPath,
String name)
Notification that the project has been moved.
|
static void |
ProjectOperations.notifyMoving(Project prj)
Notification that the project is about to be moved.
|
Built on March 18 2014. | Portions Copyright 1997-2014 Sun Microsystems, Inc. All rights reserved.