Class GenericSources
java.lang.Object
org.netbeans.spi.project.support.GenericSources
-
Method Summary
Modifier and TypeMethodDescriptionstatic Sources
Lists only one source folder group, ofSources.TYPE_GENERIC
, containing the project directory, as bygroup(org.netbeans.api.project.Project, org.openide.filesystems.FileObject, java.lang.String, java.lang.String, javax.swing.Icon, javax.swing.Icon)
.static SourceGroup
group
(Project p, org.openide.filesystems.FileObject rootFolder, String name, String displayName, Icon icon, Icon openedIcon) Default kind of source folder group.
-
Method Details
-
genericOnly
Lists only one source folder group, ofSources.TYPE_GENERIC
, containing the project directory, as bygroup(org.netbeans.api.project.Project, org.openide.filesystems.FileObject, java.lang.String, java.lang.String, javax.swing.Icon, javax.swing.Icon)
. If you think you need this, look atProjectUtils.getSources(org.netbeans.api.project.Project)
first.- Parameters:
p
- a project- Returns:
- a simple sources implementation
-
group
public static SourceGroup group(Project p, org.openide.filesystems.FileObject rootFolder, String name, String displayName, Icon icon, Icon openedIcon) Default kind of source folder group. Contains everything inside the supplied root folder which belongs to the supplied project and is considered sharable by VCS.- Parameters:
p
- a projectrootFolder
- the root folder to use for sourcesname
- a code name for the source groupdisplayName
- a display name for the source groupicon
- a regular icon to use for the source group, or nullopenedIcon
- an opened variant icon to use, or null- Returns:
- a new group object
-