Package ghidra.plugins.fsbrowser
Class FSBUtils
- java.lang.Object
-
- ghidra.plugins.fsbrowser.FSBUtils
-
public class FSBUtils extends java.lang.Object
FileSystemBrowserPlugin
utility methods that other things might find useful.
-
-
Constructor Summary
Constructors Constructor Description FSBUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
fsrlHasContainer(FSRLRoot fsFSRL)
static FSRL
getFileFSRLFromContext(ActionContext context)
static FSRL
getFSRLFromContext(ActionContext context, boolean dirsOk)
static FSBRootNode
getNodesRoot(FSBNode node)
static ProgramManager
getProgramManager(PluginTool tool, boolean allowUserPrompt)
Returns theProgramManager
associated with this fs browser plugin.static java.util.List<PluginTool>
getRunningProgramManagerTools(PluginTool tool)
-
-
-
Method Detail
-
getFileFSRLFromContext
public static FSRL getFileFSRLFromContext(ActionContext context)
-
getFSRLFromContext
public static FSRL getFSRLFromContext(ActionContext context, boolean dirsOk)
-
fsrlHasContainer
public static boolean fsrlHasContainer(FSRLRoot fsFSRL)
-
getNodesRoot
public static FSBRootNode getNodesRoot(FSBNode node)
-
getProgramManager
public static ProgramManager getProgramManager(PluginTool tool, boolean allowUserPrompt)
Returns theProgramManager
associated with this fs browser plugin.When this FS Browser plugin is part of the front-end tool, this will search for an open CodeBrowser tool that can be used to handle programs.
When this FS Browser plugin is part of a CodeBrowser tool, this will just return the local ProgramManager / CodeBrowser.
- Parameters:
tool
- The plugin tool.allowUserPrompt
- boolean flag to allow this method to query the user to select a CodeBrowser.- Returns:
- null if front-end and no open CodeBrowser, otherwise returns the local CodeBrowser ProgramManager service.
-
getRunningProgramManagerTools
public static java.util.List<PluginTool> getRunningProgramManagerTools(PluginTool tool)
-
-