mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-04 02:09:44 +02:00
GP-3189 corrected tool launch issue when file(s) dragged onto tool icon in toolchest. Removed single-DomainFile launch methods on ToolServices API.
This commit is contained in:
parent
d84d6df8f6
commit
62501f70c1
9 changed files with 41 additions and 69 deletions
|
@ -28,7 +28,6 @@ import docking.util.image.ToolIconURL;
|
|||
import ghidra.app.plugin.core.codebrowser.CodeBrowserPlugin;
|
||||
import ghidra.app.plugin.core.progmgr.ProgramManagerPlugin;
|
||||
import ghidra.framework.main.FrontEndPlugin;
|
||||
import ghidra.framework.plugintool.PluginTool;
|
||||
import ghidra.framework.project.tool.GhidraTool;
|
||||
import ghidra.program.database.ProgramDB;
|
||||
import ghidra.test.ClassicSampleX86ProgramBuilder;
|
||||
|
@ -47,8 +46,9 @@ public class DiffSaveSettingsTest extends DiffApplyTestAdapter {
|
|||
|
||||
private void launchTool() throws Exception {
|
||||
// Launch our own tool for the Diff so that we can close it and handle "Save Tool?".
|
||||
runSwing(() -> tool =
|
||||
(PluginTool) frontEndTool.getProject().getToolServices().launchTool("MyDiffTestTool",
|
||||
runSwing(() -> tool = frontEndTool.getProject()
|
||||
.getToolServices()
|
||||
.launchTool("MyDiffTestTool",
|
||||
null));
|
||||
|
||||
cb = getPlugin(tool, CodeBrowserPlugin.class);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue