|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectprojectviewer.importer.ImporterFileFilter
projectviewer.importer.GlobFilter
public final class GlobFilter
Filter that uses the settings provided by the user (in jEdit's options) to select the files.
Field Summary |
---|
Fields inherited from interface org.gjt.sp.jedit.io.VFSFileFilter |
---|
SERVICE_NAME |
Constructor Summary | |
---|---|
GlobFilter(java.lang.String fileGlobs,
java.lang.String dirGlobs)
Creates a new GlobFilter based on the given parameters. |
Method Summary | |
---|---|
boolean |
accept(org.gjt.sp.jedit.io.VFSFile file)
|
protected void |
done()
Called by project viewer after the filter is used for importing. |
java.lang.String |
getDescription()
|
java.lang.String |
getDirectoryGlobs()
Returns the "ignore directories" globs for this filter. |
java.lang.String |
getFileGlobs()
Returns the "include file" globs for this filter. |
static GlobFilter |
getImportSettingsFilter()
Returns a glob filter with the settings taken from the global ProjectViewer "import settings". |
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. |
boolean |
isCustom()
Tells whether this instance is a customized filter or a "built-in" one. |
Methods inherited from class projectviewer.importer.ImporterFileFilter |
---|
accept, getId, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public GlobFilter(java.lang.String fileGlobs, java.lang.String dirGlobs)
fileGlobs
- List of globs of files to accept (or reject if
the glob starts with !). space-separated.dirGlobs
- List of globs of directory names to ignore.Method Detail |
---|
public static GlobFilter getImportSettingsFilter()
public java.lang.String getDescription()
public boolean accept(org.gjt.sp.jedit.io.VFSFile file)
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 boolean isCustom()
public java.lang.String getFileGlobs()
public java.lang.String getDirectoryGlobs()
protected void done()
ImporterFileFilter
done
in class ImporterFileFilter
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |