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 systemscan implement if they need to preprocess image files so that Ghidra can display them.static IcongetIconForFile(GFile file, TaskMonitor monitor) Helper static method that will get an Icon from a data file.
-
Method Details
-
getIcon
A method thatfile systemscan implement if they need to preprocess image files so that Ghidra can display them.- Parameters:
file-GFileto read and convert into an Icon.monitor-TaskMonitorto watch and update with progress.- Returns:
- new
Iconinstance 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-GFileto read and convert into an Icon.monitor-TaskMonitorto watch and update with progress.- Returns:
- new
Iconinstance with contents of the GFile, or null if the file couldn't be converted into an image. - Throws:
CancelledException- if the user cancels.
-