projectviewer.importer
Class CompositeImporterFileFilter
java.lang.Object
projectviewer.importer.ImporterFileFilter
projectviewer.importer.CompositeImporterFileFilter
- All Implemented Interfaces:
- org.gjt.sp.jedit.io.VFSFileFilter
public class CompositeImporterFileFilter
- extends ImporterFileFilter
A composite filter that requires acceptance by two filters.
Fields inherited from interface org.gjt.sp.jedit.io.VFSFileFilter |
SERVICE_NAME |
Method Summary |
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
CompositeImporterFileFilter
public CompositeImporterFileFilter(ImporterFileFilter filter1,
ImporterFileFilter filter2)
- Parameters:
filter1
- The first filter to test for file acceptance.filter2
- The second filter to test for file acceptance.
accept
public boolean accept(org.gjt.sp.jedit.io.VFSFile file)
- Tests the file for acceptance by filter1 then for acceptance by filter2.
Both filters must accept the file for this composite filter to accept the
file.
- Parameters:
file
- The file to test for acceptance by this filter.
- Returns:
true
if the file is acceptable to both filters.
getRecurseDescription
public java.lang.String getRecurseDescription()
- Description copied from class:
ImporterFileFilter
- 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.
It should return a short, descriptive string of what the filter does.
For example, "Import all files." or "Use the CVS/Entries file."
- Specified by:
getRecurseDescription
in class ImporterFileFilter
getDescription
public java.lang.String getDescription()