Interface ProjectFactory2
- All Superinterfaces:
ProjectFactory
Create in-memory projects from disk directories.
Instances should be registered into default lookup as ProjectFactory instances.
- Since:
- org.netbeans.modules.projectapi 1.22
-
Method Summary
Modifier and TypeMethodDescriptionisProject2
(org.openide.filesystems.FileObject projectDirectory) Test whether a given directory probably refers to a project recognized by this factory without actually trying to create it.Methods inherited from interface org.netbeans.spi.project.ProjectFactory
isProject, loadProject, saveProject
-
Method Details
-
isProject2
Test whether a given directory probably refers to a project recognized by this factory without actually trying to create it.Should be as fast as possible as it might be called sequentially on a lot of directories.
Need not be definite; it is permitted to return null or throw an exception from
ProjectFactory.loadProject(org.openide.filesystems.FileObject, org.netbeans.spi.project.ProjectState)
even when returningResult
instance from this method, in case the directory looked like a project directory but in fact had something wrong with it.Will be called inside read access.
- Parameters:
projectDirectory
- a directory which might refer to a project- Returns:
- Result instance if this factory recognizes it, or null if the directory is not recognized
-