public final class GlobFilter extends ImporterFileFilter
Constructor and Description |
---|
GlobFilter(java.lang.String fileGlobs,
java.lang.String dirGlobs)
Creates a new GlobFilter based on the given parameters.
|
Modifier and Type | Method and Description |
---|---|
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.
|
accept, getId, toString
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.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