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 ofDockingAction
s that should beadded
to theFSBComponentProvider
tree as local actions.default boolean
fileDefaultAction
(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 boolean
fileFocused
(FSBFileNode fileNode) Called when a file node is focused in theFSBComponentProvider
tree.default List
<DockingAction> Returns a list ofDockingAction
s that should be added to a popup menu.void
init
(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 ofDockingAction
s that should beadded
to theFSBComponentProvider
tree as local actions.- Returns:
- list of
DockingAction
s
-
fileFocused
Called when a file node is focused in theFSBComponentProvider
tree.- Parameters:
fileNode
-FSBFileNode
that 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
-FSBFileNode
that was acted upon- Returns:
- boolean true if action was taken, false if no action was taken
-
getPopupProviderActions
Returns a list ofDockingAction
s 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
DockingAction
s
-