projectviewer.importer
Class CVSEntriesFilter
java.lang.Object
projectviewer.importer.ImporterFileFilter
projectviewer.importer.CVSEntriesFilter
- All Implemented Interfaces:
- org.gjt.sp.jedit.io.VFSFileFilter
public class CVSEntriesFilter
- extends ImporterFileFilter
Filter that uses the CVS/Entries file to decide if a file should be accepted
or not. The filter behaves a little differently depending on where it's
being used: if inside a JFileChooser, it accepts directories regardless of
them being on the CVS/Entries file or not, so the user can navigate freely.
For the java.io.FilenameFilter implementation, the CVS/Entries listing is
strictly enforced, even for directories. This way, no directories that are
not listed there are going to be imported into the project.
"Entries" files read are kept in an internal cache so that subsequent
visits to the same directory are faster.
- Author:
- Marcelo Vanzin
Fields inherited from interface org.gjt.sp.jedit.io.VFSFileFilter |
SERVICE_NAME |
Method Summary |
boolean |
accept(org.gjt.sp.jedit.io.VFSFile file)
accept() method for the FilenameFilter implementation. |
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 |
CVSEntriesFilter
public CVSEntriesFilter()
getDescription
public java.lang.String getDescription()
accept
public boolean accept(org.gjt.sp.jedit.io.VFSFile file)
- accept() method for the FilenameFilter implementation. Accepts only
files and directories that are listed in the CVS/Entries file.
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