Package ghidra.plugins.fsbrowser
Class FileSystemBrowserPlugin
java.lang.Object
ghidra.framework.plugintool.Plugin
ghidra.plugins.fsbrowser.FileSystemBrowserPlugin
- All Implemented Interfaces:
FileSystemBrowserService,ApplicationLevelPlugin,ProjectListener,PluginEventListener,ServiceListener,ExtensionPoint
public class FileSystemBrowserPlugin
extends Plugin
implements ApplicationLevelPlugin, ProjectListener, FileSystemBrowserService
A
Plugin that supplies a filesystem browser component
that allows the user to view the contents of filesystems and perform actions on the
files inside those filesystems.-
Field Summary
Fields inherited from class ghidra.framework.plugintool.Plugin
name, pluginDescription, tool -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcreateNewFileSystemBrowser(FileSystemRef fsRef, boolean show) Creates a new browser UI component for an already openGFileSystem(pinned with the specifiedFileSystemRefthat will be taken ownership of by this method).protected voiddispose()Tells a plugin that it is no longer needed.protected voidinit()Initialization method; override to add initialization for this plugin.voidPrompts the user to pick a file system container file to open using a local filesystem browser and then displays that filesystem in a new fsb browser.voidopenFileSystem(FSRL fsrl) Opens the givenFSRLin a file system browser.voidprocessEvent(PluginEvent event) Method called to process a plugin event.voidprojectClosed(Project project) Notification that the given project is closed.voidprojectOpened(Project project) Notification that the given project is open.voidsetLastExportDirectory(File lastExportDirectory) Methods inherited from class ghidra.framework.plugintool.Plugin
accept, acceptData, canClose, canCloseDomainObject, cleanup, close, dataStateRestoreCompleted, dependsUpon, deregisterService, equals, eventSent, firePluginEvent, getData, getMissingRequiredServices, getName, getPluginDescription, getServicesRequired, getSupportedDataTypes, getTool, getTransientState, getUndoRedoState, hashCode, hasMissingRequiredService, hasUnsaveData, internalRegisterEventConsumed, isDisposed, prepareToSave, readConfigState, readDataState, registerDynamicServiceProvided, registerServiceProvided, restoreTransientState, restoreUndoRedoState, saveData, serviceAdded, serviceRemoved, writeConfigState, writeDataState
-
Constructor Details
-
FileSystemBrowserPlugin
-
-
Method Details
-
init
protected void init()Description copied from class:PluginInitialization method; override to add initialization for this plugin. This is where a plugin should acquire its services. When this method is called, all plugins have been instantiated in the tool. -
dispose
protected void dispose()Description copied from class:PluginTells a plugin that it is no longer needed. The plugin should release any resources that it has. All actions, components, services will automatically be cleaned up. -
openFileSystem
Description copied from interface:FileSystemBrowserServiceOpens the givenFSRLin a file system browser.- Specified by:
openFileSystemin interfaceFileSystemBrowserService- Parameters:
fsrl- The thing to open in a file system browser.
-
createNewFileSystemBrowser
Creates a new browser UI component for an already openGFileSystem(pinned with the specifiedFileSystemRefthat will be taken ownership of by this method).- Parameters:
fsRef-FileSystemRefof openGFileSystemshow- boolean true if the new browser component should be shown
-
openFileSystem
public void openFileSystem()Prompts the user to pick a file system container file to open using a local filesystem browser and then displays that filesystem in a new fsb browser. -
processEvent
Description copied from class:PluginMethod called to process a plugin event. Plugins should override this method if the plugin processes PluginEvents;- Overrides:
processEventin classPlugin- Parameters:
event- plugin to process
-
projectClosed
Description copied from interface:ProjectListenerNotification that the given project is closed.- Specified by:
projectClosedin interfaceProjectListener- Parameters:
project- project that is closed
-
projectOpened
Description copied from interface:ProjectListenerNotification that the given project is open.- Specified by:
projectOpenedin interfaceProjectListener- Parameters:
project- project that is opened
-
getLastExportDirectory
-
setLastExportDirectory
-