Java Code Examples for ghidra.framework.plugintool.PluginTool#setVisible()
The following examples show how to use
ghidra.framework.plugintool.PluginTool#setVisible() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ToolServicesImpl.java From ghidra with Apache License 2.0 | 6 votes |
@Override public void displaySimilarTool(PluginTool tool, DomainFile domainFile, PluginEvent event) { PluginTool[] similarTools = getSameNamedRunningTools(tool); PluginTool matchingTool = findToolUsingFile(similarTools, domainFile); if (matchingTool != null) { // Bring the matching tool forward. matchingTool.toFront(); } else { // Create a new tool and pop it up. Workspace workspace = toolManager.getActiveWorkspace(); matchingTool = workspace.runTool(tool.getToolTemplate(true)); matchingTool.setVisible(true); matchingTool.acceptDomainFiles(new DomainFile[] { domainFile }); } // Fire the indicated event in the tool. matchingTool.firePluginEvent(event); }
Example 2
Source File: WorkspaceImpl.java From ghidra with Apache License 2.0 | 6 votes |
@Override public PluginTool runTool(ToolTemplate template) { PluginTool tool = toolManager.getTool(this, template); if (tool != null) { tool.setVisible(true); if (tool instanceof GhidraTool) { GhidraTool gTool = (GhidraTool) tool; gTool.checkForNewExtensions(); } runningTools.add(tool); // alert the tool manager that we changed toolManager.setWorkspaceChanged(this); toolManager.fireToolAddedEvent(this, tool); } return tool; }
Example 3
Source File: ToolServicesImpl.java From ghidra with Apache License 2.0 | 5 votes |
@Override public PluginTool launchDefaultTool(DomainFile domainFile) { ToolTemplate template = getDefaultToolTemplate(domainFile); if (template != null) { Workspace workspace = toolManager.getActiveWorkspace(); PluginTool tool = workspace.runTool(template); tool.setVisible(true); if (domainFile != null) { tool.acceptDomainFiles(new DomainFile[] { domainFile }); } return tool; } return null; }
Example 4
Source File: ToolServicesImpl.java From ghidra with Apache License 2.0 | 5 votes |
@Override public PluginTool launchTool(String toolName, DomainFile domainFile) { ToolTemplate template = findToolChestToolTemplate(toolName); if (template != null) { Workspace workspace = toolManager.getActiveWorkspace(); PluginTool tool = workspace.runTool(template); tool.setVisible(true); if (domainFile != null) { tool.acceptDomainFiles(new DomainFile[] { domainFile }); } return tool; } return null; }
Example 5
Source File: WorkspaceImpl.java From ghidra with Apache License 2.0 | 5 votes |
@Override public PluginTool createTool() { // launch the empty tool PluginTool emptyTool = toolManager.createEmptyTool(); // add the new tool to our list of running tools runningTools.add(emptyTool); emptyTool.setVisible(true); // alert the tool manager that we changed toolManager.setWorkspaceChanged(this); toolManager.fireToolAddedEvent(this, emptyTool); return emptyTool; }
Example 6
Source File: WorkspaceImpl.java From ghidra with Apache License 2.0 | 5 votes |
void setVisible(boolean state) { isActive = state; PluginTool[] tools = getTools(); for (PluginTool tool : tools) { tool.setVisible(state); } }