public class CompositeImporterFileFilter extends ImporterFileFilter
Constructor and Description |
---|
CompositeImporterFileFilter(ImporterFileFilter filter1,
ImporterFileFilter filter2) |
Modifier and Type | Method and Description |
---|---|
boolean |
accept(org.gjt.sp.jedit.io.VFSFile file)
Tests the file for acceptance by filter1 then for acceptance by filter2.
|
java.lang.String |
getDescription() |
java.lang.String |
getRecurseDescription()
This method will be called by the toString() method when showing this
filter as an option to the dialog shown when asking about whether the
user wants to recurse into the directories selected for importing.
|
accept, done, getId, toString
public CompositeImporterFileFilter(ImporterFileFilter filter1, ImporterFileFilter filter2)
filter1
- The first filter to test for file acceptance.filter2
- The second filter to test for file acceptance.public boolean accept(org.gjt.sp.jedit.io.VFSFile file)
file
- The file to test for acceptance by this filter.true
if the file is acceptable to both filters.public java.lang.String getRecurseDescription()
ImporterFileFilter
It should return a short, descriptive string of what the filter does. For example, "Import all files." or "Use the CVS/Entries file."
getRecurseDescription
in class ImporterFileFilter
public java.lang.String getDescription()