Package ghidra.util.filechooser
Interface GhidraFileFilter
-
- All Known Implementing Classes:
ExtensionFileFilter
public interface GhidraFileFilter
A interface that filters out all files except for those type extensions that it knows about. Extensions are of the type ".foo", which is typically found on Windows and Unix boxes, but not on Macinthosh. Case is ignored.
-
-
Field Summary
Fields Modifier and Type Field Description static GhidraFileFilter
ALL
A default implementation that shows all files.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
accept(java.io.File pathname, GhidraFileChooserModel model)
Tests whether or not the specified abstract pathname should be included in a pathname list.java.lang.String
getDescription()
Returns the description of this filter.
-
-
-
Field Detail
-
ALL
static final GhidraFileFilter ALL
A default implementation that shows all files.
-
-
Method Detail
-
accept
boolean accept(java.io.File pathname, GhidraFileChooserModel model)
Tests whether or not the specified abstract pathname should be included in a pathname list.- Parameters:
pathname
- The abstract pathname to be testedmodel
- The underlying file chooser model- Returns:
true
if and only ifpathname
should be included
-
getDescription
java.lang.String getDescription()
Returns the description of this filter.- Returns:
- the description of this filter
-
-