|
org.netbeans.api.java.classpath/1 1.29.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.netbeans.api.java.queries.SourceForBinaryQuery.Result2
public static class SourceForBinaryQuery.Result2
Result of finding sources, encapsulating the answer as well as the
ability to listen to it.
In addition to the Result it provides information if the source root(s)
should be preferred over the binaries used by the java infrastructure.
Most of the clients don't need this information, so thay can use the
original SourceForBinaryQuery.Result
.
Method Summary | |
---|---|
void |
addChangeListener(ChangeListener l)
Add a listener to changes in the roots. |
FileObject[] |
getRoots()
Get the source roots. |
boolean |
preferSources()
This method is used by the java infrastructure to find out whether the sources should be preferred over the binaries. |
void |
removeChangeListener(ChangeListener l)
Remove a listener to changes in the roots. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public FileObject[] getRoots()
SourceForBinaryQuery.Result
getRoots
in interface SourceForBinaryQuery.Result
public void addChangeListener(ChangeListener l)
SourceForBinaryQuery.Result
addChangeListener
in interface SourceForBinaryQuery.Result
l
- a listener to addpublic void removeChangeListener(ChangeListener l)
SourceForBinaryQuery.Result
removeChangeListener
in interface SourceForBinaryQuery.Result
l
- a listener to removepublic boolean preferSources()
SourceForBinaryQueryImplementation2
|
org.netbeans.api.java.classpath/1 1.29.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |