Package ghidra.formats.gfilesystem
Interface GIconProvider
public interface GIconProvider
GFileSystem
add-on interface to allow filesystems to override how image files
are converted into viewable Icon
instances.-
Method Summary
Modifier and TypeMethodDescriptiongetIcon
(GFile file, TaskMonitor monitor) A method thatfile systems
can implement if they need to preprocess image files so that Ghidra can display them.static Icon
getIconForFile
(GFile file, TaskMonitor monitor) Helper static method that will get an Icon from a data file.
-
Method Details
-
getIcon
A method thatfile systems
can implement if they need to preprocess image files so that Ghidra can display them.- Parameters:
file
-GFile
to read and convert into an Icon.monitor
-TaskMonitor
to watch and update with progress.- Returns:
- new
Icon
instance with contents of the GFile. - Throws:
IOException
- if problem reading or converting image.CancelledException
- if user cancels.
-
getIconForFile
Helper static method that will get an Icon from a data file.- Parameters:
file
-GFile
to read and convert into an Icon.monitor
-TaskMonitor
to watch and update with progress.- Returns:
- new
Icon
instance with contents of the GFile, or null if the file couldn't be converted into an image. - Throws:
CancelledException
- if the user cancels.
-