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
Modifier and TypeFieldDescriptionstatic final GhidraFileFilter
A default implementation that shows all files. -
Method Summary
Modifier and TypeMethodDescriptionboolean
accept
(File pathname, GhidraFileChooserModel model) Tests whether or not the specified abstract pathname should be included in a pathname list.Returns the description of this filter.
-
Field Details
-
ALL
A default implementation that shows all files.
-
-
Method Details
-
accept
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
String getDescription()Returns the description of this filter.- Returns:
- the description of this filter
-