public abstract class Roots extends Object
QuerySupport.createSources(org.netbeans.api.project.Project, org.netbeans.spi.project.support.ant.AntProjectHelper, org.netbeans.spi.project.support.ant.PropertyEvaluator, org.netbeans.modules.java.api.common.Roots...)
Modifier and Type | Method and Description |
---|---|
void |
addPropertyChangeListener(PropertyChangeListener listener)
Adds
PropertyChangeListener , see class description for more information
about listening to the source roots changes. |
abstract String[] |
getRootDisplayNames()
Returns root's display names
|
abstract String[] |
getRootProperties()
Returns names of Ant properties in the project.properties file holding the roots.
|
static Roots |
nonSourceRoots(String... rootPropNames)
Creates roots list which should be registered as non source roots.
|
static Roots |
propertyBased(String[] properties,
String[] displayNames,
boolean supportIncludes,
String type,
String hint)
Creates a source roots list which should be registered as principal and
possibly typed roots.
|
void |
removePropertyChangeListener(PropertyChangeListener listener)
Removes
PropertyChangeListener , see class description for more information
about listening to the source roots changes. |
@NonNull public abstract String[] getRootDisplayNames()
@NonNull public abstract String[] getRootProperties()
public final void addPropertyChangeListener(@NonNull PropertyChangeListener listener)
PropertyChangeListener
, see class description for more information
about listening to the source roots changes.listener
- a listener to add.public final void removePropertyChangeListener(@NonNull PropertyChangeListener listener)
PropertyChangeListener
, see class description for more information
about listening to the source roots changes.listener
- a listener to remove.public static Roots nonSourceRoots(@NonNull String... rootPropNames)
rootPropNames
- Ant properties in the project.properties file holding the rootsfor details
public static Roots propertyBased(@NonNull String[] properties, @NonNull String[] displayNames, boolean supportIncludes, @NullAllowed String type, @NullAllowed String hint)
properties
- Ant properties in the project.properties file holding the rootsdisplayNames
- the display names of the rootssupportIncludes
- when true the roots list supports includes/excludestype
- of the roots, when null the roots are registered as principal roots onlyhint
- optional hint for SourceGroupModifier
for details.