Uses of Interface
org.netbeans.api.project.Project
Packages that use Project
Package
Description
General API for finding and manipulating all kinds of projects.
Support for defining project types.
-
Uses of Project in org.netbeans.api.project
Fields in org.netbeans.api.project declared as ProjectModifier and TypeFieldDescriptionstatic final Project
FileOwnerQuery.UNOWNED
Pseudoproject indicating just that a directory is definitely unowned.Methods in org.netbeans.api.project that return ProjectModifier and TypeMethodDescriptionProjectManager.findProject
(org.openide.filesystems.FileObject projectDirectory) Find an open project corresponding to a given project directory.static Project
Find the project, if any, which "owns" the given URI.static Project
FileOwnerQuery.getOwner
(org.openide.filesystems.FileObject file) Find the project, if any, which "owns" the given file.ProjectActionContext.getProject()
Returns the project this context applies to.ProjectInformation.getProject()
Get the associated project.static Project
Utility method forParentProjectProvider
.static Project
Utility method forRootProjectProvider
.Methods in org.netbeans.api.project that return types with arguments of type ProjectModifier and TypeMethodDescriptionProjectUtils.getContainedProjects
(Project root, boolean recursive) Utility method for access toProjectContainerProvider
, a less vague variant of theSubprojectProvider
for code that wants to access projects that the current project serves as container for.ProjectUtils.getDependencyProjects
(Project root, boolean recursive) Utility method for access toDependencyProjectProvider
, a less vague variant of theSubprojectProvider
for code that wants to access project's dependencies that are also projects.ProjectManager.getModifiedProjects()
Get a list of all projects which are modified and need to be saved.ContainedProjectFilter.getProjectsToProcess()
Methods in org.netbeans.api.project with parameters of type ProjectModifier and TypeMethodDescriptionstatic final SourceGroup
SourceGroupModifier.createAssociatedSourceGroup
(Project project, SourceGroup original, String type, String hint, String... projectParts) Creates a source group associated to an existing one.static final SourceGroup
SourceGroupModifier.createSourceGroup
(Project project, String type, String hint) Creates aSourceGroup
in the givenProject
of the given type and hint.static final SourceGroupModifier.Future
SourceGroupModifier.createSourceGroupFuture
(Project project, String type, String hint) Creates aSourceGroupModifier.Future
object that is capable of lazily creatingSourceGroup
in the givenProject
of the given type and hint.static ProjectActionContext
Find the ProjectActionContext for the project.ProjectUtils.getActiveConfiguration
(Project p) Returns the active configuration for the given project.static AuxiliaryConfiguration
ProjectUtils.getAuxiliaryConfiguration
(Project project) Find a way of storing extra configuration in a project.static org.openide.filesystems.FileObject
ProjectUtils.getCacheDirectory
(Project project, Class<?> owner) Gets a directory in which modules may store arbitrary extra unversioned files associated with a project.ProjectUtils.getContainedProjects
(Project root, boolean recursive) Utility method for access toProjectContainerProvider
, a less vague variant of theSubprojectProvider
for code that wants to access projects that the current project serves as container for.ProjectUtils.getDependencyProjects
(Project root, boolean recursive) Utility method for access toDependencyProjectProvider
, a less vague variant of theSubprojectProvider
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) ReturnPreferences
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
Checks whether a project is still valid.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 void
FileOwnerQuery.markExternalOwner
(org.openide.filesystems.FileObject root, Project owner, int algorithm) Mark an external folder or file as being owned by a particular project.static org.openide.util.Mutex
Get a read/write lock to be used for project metadata accesses.static ProjectActionContext.Builder
ProjectActionContext.newBuilder
(Project p) Creates a newProjectActionContext
builder for the given project.static Project
Utility method forParentProjectProvider
.static Project
Utility method forRootProjectProvider
.void
ProjectManager.saveProject
(Project p) Save one project (if it was in fact modified).<C extends ProjectConfiguration>
booleanProjectUtils.setActiveConfiguration
(Project p, C cfg) Sets the active configuration to a project.Method parameters in org.netbeans.api.project with type arguments of type ProjectModifier and TypeMethodDescriptionstatic Optional
<ContainedProjectFilter> Static factory method to create an instance of ContainedProjectFilter. -
Uses of Project in org.netbeans.spi.project
Methods in org.netbeans.spi.project that return ProjectModifier and TypeMethodDescriptionProjectManagerImplementation.findProject
(org.openide.filesystems.FileObject projectDirectory) Find an open project corresponding to a given project directory.Decide which project, if any, "owns" a given file.FileOwnerQueryImplementation.getOwner
(org.openide.filesystems.FileObject file) Decide which project, if any, "owns" a given file.ParentProjectProvider.getPartentProject()
The immediate parent of this project ornull
if there is no parent known.RootProjectProvider.getRootProject()
Implementations should return the farthest known parent project of this project orthis
if this project itself a root project or there is no known root project (so this project shall be considered as root).ProjectFactory.loadProject
(org.openide.filesystems.FileObject projectDirectory, ProjectState state) Create a project that resides on disk.Methods in org.netbeans.spi.project that return types with arguments of type ProjectModifier and TypeMethodDescriptionProjectManagerImplementation.getModifiedProjects()
Get a list of all projects which are modified and need to be saved.DependencyProjectProvider.Result.getProjects()
ProjectContainerProvider.Result.getProjects()
SubprojectProvider.getSubprojects()
Get a set of projects which this project can be considered to depend upon somehow.Methods in org.netbeans.spi.project with parameters of type ProjectModifier and TypeMethodDescriptionProjectIconAnnotator.annotateIcon
(Project p, Image original, boolean openedNode) Makes any changes to a project's icon.org.openide.util.Mutex
Get a read/write lock to be used for project metadata accesses.ProjectInformationProvider.getProjectInformation
(Project project) boolean
ProjectManagerImplementation.isModified
(Project p) Check whether a given project is current modified.boolean
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
ProjectFactory.saveProject
(Project project) Save a project to disk.void
ProjectManagerImplementation.saveProject
(Project p) Save one project (if it was in fact modified).Constructor parameters in org.netbeans.spi.project with type arguments of type Project -
Uses of Project in org.netbeans.spi.project.support
Methods in org.netbeans.spi.project.support with parameters of type ProjectModifier and TypeMethodDescriptionstatic Sources
GenericSources.genericOnly
(Project p) Lists only one source folder group, ofSources.TYPE_GENERIC
, containing the project directory, as byGenericSources.group(org.netbeans.api.project.Project, org.openide.filesystems.FileObject, java.lang.String, java.lang.String, javax.swing.Icon, javax.swing.Icon)
.static List
<org.openide.filesystems.FileObject> ProjectOperations.getDataFiles
(Project prj) Return list of files that are considered source files and folders for the given project.static List
<org.openide.filesystems.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, org.openide.filesystems.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.