|
org.netbeans.modules.java.project/1 1.12 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.netbeans.spi.java.project.support.ui.IncludeExcludeVisualizer
public class IncludeExcludeVisualizer
Utility permitting a user to easily see the effect of changing include and exclude patterns on a source group (or several). Intended for use in project creation wizards and project properties dialogs. The exact appearance of the panel is not specified but it should permit the user to see, and edit, the current set of includes and excludes; and display the set of files included and excluded by the current pattern.
PathMatcher
Constructor Summary | |
---|---|
IncludeExcludeVisualizer()
Create a new visualizer. |
Method Summary | |
---|---|
void |
addChangeListener(ChangeListener l)
Add a listener to changes made by the user in the includes or excludes. |
String |
getExcludePattern()
Get the current exclude pattern. |
String |
getIncludePattern()
Get the current include pattern. |
JComponent |
getVisualizerPanel()
Get the associated visual panel. |
void |
removeChangeListener(ChangeListener l)
Remove a change listener. |
void |
setExcludePattern(String pattern)
Set the exclude pattern. |
void |
setIncludePattern(String pattern)
Set the include pattern. |
void |
setRoots(File[] roots)
Configure a set of root directories to which the includes and excludes apply. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IncludeExcludeVisualizer()
Method Detail |
---|
public void setRoots(File[] roots) throws IllegalArgumentException
roots
- a set of root directories to search
IllegalArgumentException
- if roots contains a non-directorypublic String getIncludePattern()
public void setIncludePattern(String pattern)
pattern
- the new pattern (never null)public String getExcludePattern()
public void setExcludePattern(String pattern)
pattern
- the new pattern (never null)public void addChangeListener(ChangeListener l)
l
- the listenerpublic void removeChangeListener(ChangeListener l)
l
- the listenerpublic JComponent getVisualizerPanel()
IllegalThreadStateException
- if not called in the event thread
|
org.netbeans.modules.java.project/1 1.12 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |