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 | Field and Description |
---|---|
static Project |
FileOwnerQuery.UNOWNED
Pseudoproject indicating just that a directory is definitely unowned.
|
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.
|
static Project |
ProjectUtils.parentOf(Project project)
Utility method for
ParentProjectProvider . |
static Project |
ProjectUtils.rootOf(Project project)
Utility method for
RootProjectProvider . |
Modifier and Type | Method and Description |
---|---|
static SourceGroup |
SourceGroupModifier.createAssociatedSourceGroup(Project project,
SourceGroup original,
String type,
String hint,
String... projectParts)
Creates a source group associated to an existing one.
|
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 Set<Project> |
ProjectUtils.getContainedProjects(Project root,
boolean recursive)
Utility method for access to
ProjectContainerProvider , a less vague variant of the SubprojectProvider for code
that wants to access projects that the current project serves as container for. |
static Set<Project> |
ProjectUtils.getDependencyProjects(Project root,
boolean recursive)
Utility method for access to
DependencyProjectProvider , a less vague variant of the SubprojectProvider for code
that wants to access project's dependencies that are also projects. |
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.
|
static Mutex |
ProjectManager.mutex(boolean autoSave,
Project project,
Project... otherProjects)
Get a read/write lock to be used for project metadata accesses.
|
static Mutex |
ProjectManager.mutex(boolean autoSave,
Project project,
Project... otherProjects)
Get a read/write lock to be used for project metadata accesses.
|
static Project |
ProjectUtils.parentOf(Project project)
Utility method for
ParentProjectProvider . |
static Project |
ProjectUtils.rootOf(Project project)
Utility method for
RootProjectProvider . |
void |
ProjectManager.saveProject(Project p)
Save one project (if it was in fact modified).
|
Modifier and Type | Method and Description |
---|---|
Project |
ProjectManagerImplementation.findProject(FileObject projectDirectory)
Find an open project corresponding to a given project directory.
|
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 |
ParentProjectProvider.getPartentProject()
The immediate parent of this project or
null if there is no
parent known. |
Project |
RootProjectProvider.getRootProject()
Implementations should return the farthest known parent project of this
project or
this if this project itself a root project or
there is no known root project (so this project shall be considered as
root). |
Project |
ProjectFactory.loadProject(FileObject projectDirectory,
ProjectState state)
Create a project that resides on disk.
|
Modifier and Type | Method and Description |
---|---|
Image |
ProjectIconAnnotator.annotateIcon(Project p,
Image original,
boolean openedNode)
Makes any changes to a project's icon.
|
Mutex |
ProjectManagerImplementation.getMutex(boolean autoSave,
Project project,
Project... otherProjects)
Get a read/write lock to be used for project metadata accesses.
|
Mutex |
ProjectManagerImplementation.getMutex(boolean autoSave,
Project project,
Project... otherProjects)
Get a read/write lock to be used for project metadata accesses.
|
ProjectInformation |
ProjectInformationProvider.getProjectInformation(Project project) |
boolean |
ProjectManagerImplementation.isModified(Project p)
Check whether a given project is current modified.
|
boolean |
ProjectManagerImplementation.isValid(Project p)
Checks whether a project is still valid.
|
void |
CopyOperationImplementation.notifyCopied(Project original,
File originalPath,
String nueName)
Notification that the copy operation has finished.
|
void |
ProjectManagerImplementation.ProjectManagerCallBack.notifyDeleted(Project project)
Project was deleted or renamed.
|
void |
ProjectManagerImplementation.ProjectManagerCallBack.notifyModified(Project project)
Project was modified.
|
void |
MoveOperationImplementation.notifyMoved(Project original,
File originalPath,
String nueName)
Notification that the move operation has finished.
|
void |
ProjectManagerImplementation.saveProject(Project p)
Save one project (if it was in fact modified).
|
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.
|