|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.filechooser.FileFilter
projectviewer.importer.ImporterFileFilter
projectviewer.importer.GlobFilter
Filter that uses the settings provided by the user (in jEdit's options) to select the files.
Constructor Summary | |
GlobFilter(java.lang.String fileGlobs,
java.lang.String dirGlobs)
Creates a new GlobFilter based on the given parameters. |
|
GlobFilter(java.lang.String description,
java.lang.String recurseDescription,
java.lang.String fileGlobs,
java.lang.String dirGlobs)
Creates a new GlobFilter based on the given parameters with some description texts. |
Method Summary | |
boolean |
accept(java.io.File file)
|
boolean |
accept(java.io.File dir,
java.lang.String fileName)
|
java.lang.String |
getDescription()
|
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. |
Methods inherited from class projectviewer.importer.ImporterFileFilter |
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.public GlobFilter(java.lang.String description, java.lang.String recurseDescription, java.lang.String fileGlobs, java.lang.String dirGlobs)
import settings filter
.
Method Detail |
public static GlobFilter getImportSettingsFilter()
public java.lang.String getDescription()
public boolean accept(java.io.File file)
public boolean accept(java.io.File dir, java.lang.String fileName)
public java.lang.String getRecurseDescription()
ImporterFileFilter
It should return a short, descriptive string of what the filter does, gererally prefixed with "Yes,". For example, "Yes, import all files." or "Yes, use the CVS/Entries file."
getRecurseDescription
in class ImporterFileFilter
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |