|
org.netbeans.modules.java.api.common/0 1.37 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.netbeans.modules.java.api.common.Roots
public abstract class Roots
Represents a list of root properties used by 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...)
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
@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 roots
for 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.
|
org.netbeans.modules.java.api.common/0 1.37 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||