Replies: 1 comment 3 replies
-
Hello @djsteffey, As the Ghidra API doc say about Project project = tool.getProject();
DomainFile domainFile = project.getProjectData().getRootFolder().getFile("test.exe");
project.getToolServices().launchTool("CodeBrowser", Arrays.asList(domainFile)); Note that the Code Browser tool must be launched in Swing thread, for this, use the Ghidra wrapping lib around Swing, with GhidraTool codeBrowser = SystemUtilities.runSwingNow(() -> {
project.getToolServices().launchTool("CodeBrowser", Arrays.asList(domainFile));
}); Next, for example, you can retrieve the console and print a message. ConsoleService console = codeBrowser.getService(ConsoleService.class);
console.println("Opened !!!") |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have a custom plugin that is a tool opened from the Tool Chest from the project front end.
My plugin has its own interface. When I click a button in it I run the below code. I expect the program to be open in the code browser, but no code browser ever appears and no error messages are generated.
I use this abbreviated code here. I do check return values in the source file and get no errors.
Beta Was this translation helpful? Give feedback.
All reactions