Package ghidra.plugins.fsbrowser
Class FileSystemBrowserPlugin
- java.lang.Object
-
- ghidra.framework.plugintool.Plugin
-
- ghidra.plugins.fsbrowser.FileSystemBrowserPlugin
-
- All Implemented Interfaces:
FileSystemBrowserService,FileSystemEventListener,FrontEndable,ProjectListener,PluginEventListener,ServiceListener,ExtensionPoint
public class FileSystemBrowserPlugin extends Plugin implements FrontEndable, ProjectListener, FileSystemEventListener, FileSystemBrowserService
APluginthat supplies afilesystembrowser component that allows the user to view the contents of filesystems and perform actions on the files inside those filesystems.x
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface ghidra.util.classfinder.ExtensionPoint
ExtensionPoint.Exclude, ExtensionPoint.Util
-
-
Field Summary
-
Fields inherited from class ghidra.framework.plugintool.Plugin
name, pluginDescription, tool
-
-
Constructor Summary
Constructors Constructor Description FileSystemBrowserPlugin(PluginTool tool)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddispose()Tells a plugin that it is no longer needed.protected voidinit()Initialization method; override to add initialization for this plugin.voidonFilesystemClose(GFileSystem fs)Called by GFilesystem'sCloseable.close(), before any destructive changes are made to the filesystem instance.voidonFilesystemRefChange(GFileSystem fs, FileSystemRefManager refManager)Called byFileSystemRefManagerwhen a newFileSystemRefis created or released.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.-
Methods inherited from class ghidra.framework.plugintool.Plugin
acceptData, canClose, canCloseDomainObject, cleanup, close, dataStateRestoreCompleted, dependsUpon, deregisterService, equals, eventSent, firePluginEvent, getData, getMissingRequiredServices, getName, getPluginDescription, getPluginName, getServicesRequired, getSupportedDataTypes, getTool, getTransientState, getUndoRedoState, hashCode, hasMissingRequiredService, hasUnsaveData, isDisposed, prepareToSave, readConfigState, readDataState, registerDynamicEventConsumed, registerDynamicServiceProvided, registerEventConsumed, registerEventProduced, registerServiceProvided, registerServiceUsed, restoreTransientState, restoreUndoRedoState, saveData, serviceAdded, serviceRemoved, writeConfigState, writeDataState
-
-
-
-
Constructor Detail
-
FileSystemBrowserPlugin
public FileSystemBrowserPlugin(PluginTool tool)
-
-
Method Detail
-
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
public void openFileSystem(FSRL fsrl)
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.
-
processEvent
public void processEvent(PluginEvent event)
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
public void projectClosed(Project project)
Description copied from interface:ProjectListenerNotification that the given project is closed.- Specified by:
projectClosedin interfaceProjectListener- Parameters:
project- project that is closed
-
projectOpened
public void projectOpened(Project project)
Description copied from interface:ProjectListenerNotification that the given project is open.- Specified by:
projectOpenedin interfaceProjectListener- Parameters:
project- project that is opened
-
onFilesystemClose
public void onFilesystemClose(GFileSystem fs)
Description copied from interface:FileSystemEventListenerCalled by GFilesystem'sCloseable.close(), before any destructive changes are made to the filesystem instance.- Specified by:
onFilesystemClosein interfaceFileSystemEventListener- Parameters:
fs-GFileSystemthat is about to be closed.
-
onFilesystemRefChange
public void onFilesystemRefChange(GFileSystem fs, FileSystemRefManager refManager)
Description copied from interface:FileSystemEventListenerCalled byFileSystemRefManagerwhen a newFileSystemRefis created or released.- Specified by:
onFilesystemRefChangein interfaceFileSystemEventListener- Parameters:
fs-GFileSystemthat is being updated.refManager-FileSystemRefManagerthat is tracking the modified GFileSystem.
-
-