Java Code Examples for ghidra.framework.plugintool.PluginTool#getName()

The following examples show how to use ghidra.framework.plugintool.PluginTool#getName() . 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: ToolTaskManager.java    From ghidra with Apache License 2.0 5 votes vote down vote up
/**
 * Construct a new ToolTaskManager.
 * 
 * @param tool tool associated with this ToolTaskManager
 */
public ToolTaskManager(PluginTool tool) {
	this.tool = tool;
	toolTaskMonitor = new ToolTaskMonitor(tool);
	toolTaskMonitor.setName("Progress Monitor");
	taskThreadGroup = new ThreadGroup(Thread.currentThread().getThreadGroup(),
		"Background-Task-Group-" + tool.getName());
}
 
Example 2
Source File: TestEnv.java    From ghidra with Apache License 2.0 5 votes vote down vote up
private void disposeSingleTool(final PluginTool pluginTool) {
	if (pluginTool == null) {
		return; // can happen if the default tool is not initialized
	}

	String toolName = pluginTool.getName();
	try {
		pluginTool.setConfigChanged(false); // don't want to prompt for saving
		pluginTool.close();
		cleanupAutoAnalysisManagers(pluginTool);
	}
	catch (Throwable t) {
		Msg.error(TestEnv.class, "Unexpected exception closing tool: " + toolName, t);
	}
}
 
Example 3
Source File: ToolManagerImpl.java    From ghidra with Apache License 2.0 2 votes vote down vote up
/**
 * Get the key for the connection map.
 * 
 * @param producer tool producing an event
 * @param consumer tool consuming an event
 * 
 */
private String getKey(PluginTool producer, PluginTool consumer) {
	return producer.getName() + "+" + consumer.getName();
}