Package ghidra.plugins.fsbrowser
Interface FSBFileHandler
- All Superinterfaces:
ExtensionPoint
- All Known Implementing Classes:
AddToProgramFSBFileHandler,BatchImportFSBFileHandler,ClearCachedPwdFSBFileHandler,CloseFSBFileHandler,ExportFSBFileHandler,GetInfoFSBFileHandler,ImageFSBFileHandler,ImportFSBFileHandler,LibrarySearchPathFSBFileHandler,ListMountedFSBFileHandler,OpenFsFSBFileHandler,OpenWithFSBFileHandler,RefreshFSBFileHandler,TextFSBFileHandler
Extension point, used by the
FSBComponentProvider to create actions that appear
in the fsb tree, and to delegate focus and default actions.-
Method Summary
Modifier and TypeMethodDescriptiondefault List<DockingAction> Returns a list ofDockingActions that should beaddedto theFSBComponentProvidertree as local actions.default booleanfileDefaultAction(FSBFileNode fileNode) Called when a file node is the target of a 'default action' initiated by the user, such as a double click, etc.default booleanfileFocused(FSBFileNode fileNode) Called when a file node is focused in theFSBComponentProvidertree.default List<DockingAction> Returns a list ofDockingActions that should be added to a popup menu.voidinit(FSBFileHandlerContext context) Called once after creation of each instance to provide useful info
-
Method Details
-
init
Called once after creation of each instance to provide useful info- Parameters:
context- references to useful objects and services
-
createActions
Returns a list ofDockingActions that should beaddedto theFSBComponentProvidertree as local actions.- Returns:
- list of
DockingActions
-
fileFocused
Called when a file node is focused in theFSBComponentProvidertree.- Parameters:
fileNode-FSBFileNodethat was focused- Returns:
- boolean true if action was taken
-
fileDefaultAction
Called when a file node is the target of a 'default action' initiated by the user, such as a double click, etc.- Parameters:
fileNode-FSBFileNodethat was acted upon- Returns:
- boolean true if action was taken, false if no action was taken
-
getPopupProviderActions
Returns a list ofDockingActions that should be added to a popup menu. Called each time a fsb browser tree popup menu is created.Only use this method to provide actions when the actions need to be created freshly for each popup event. Normal long-lived actions should be published by the
createActions()method.- Returns:
- list of
DockingActions
-