Ghidra is a software reverse engineering (SRE) framework
Merge remote-tracking branch 'origin/GP-3349_ghidragon_adding_support_for_mutliple_default_contexts--SQUASHED'
Ryan Kurtz78d9a6c6e300
diff --cc Ghidra/Features/Base/src/test.slow/java/ghidra/app/plugin/core/programtree/ViewManagerPluginTest.javaindex ce384a1b6b,29624a2444..c1ab812e0d--- a/Ghidra/Features/Base/src/test.slow/java/ghidra/app/plugin/core/programtree/ViewManagerPluginTest.java+++ b/Ghidra/Features/Base/src/test.slow/java/ghidra/app/plugin/core/programtree/ViewManagerPluginTest.java@@@ -352,10 -362,11 +362,11 @@@ public class ViewManagerPluginTest extefinal DockingActionIf renameAction = getAction(plugin, "Rename Tree View");waitForTasks();- waitForPostedSwingRunnables();+ waitForSwing();setCurrentViewProvider(PluginConstants.DEFAULT_TREE_NAME);- SwingUtilities.invokeAndWait(() -> renameAction.actionPerformed(new ActionContext()));+ SwingUtilities+ .invokeAndWait(() -> renameAction.actionPerformed(new DefaultActionContext()));EditWindow editWindow = findEditWindow(tool.getToolFrame());assertNotNull(editWindow);@@@ -394,10 -405,11 +405,11 @@@final DockingActionIf renameAction = getAction(plugin, "Rename Tree View");waitForTasks();- waitForPostedSwingRunnables();+ waitForSwing();setCurrentViewProvider(PluginConstants.DEFAULT_TREE_NAME);- SwingUtilities.invokeAndWait(() -> renameAction.actionPerformed(new ActionContext()));+ SwingUtilities+ .invokeAndWait(() -> renameAction.actionPerformed(new DefaultActionContext()));EditWindow editWindow = findEditWindow(tool.getToolFrame());assertNotNull(editWindow);final JTextField textField = (JTextField) getInstanceField("textField", editWindow);diff --cc Ghidra/Features/ByteViewer/src/test.slow/java/ghidra/app/plugin/core/byteviewer/ByteViewerPlugin2Test.javaindex ae93dc230b,d62530550e..e799fcbe8f--- a/Ghidra/Features/ByteViewer/src/test.slow/java/ghidra/app/plugin/core/byteviewer/ByteViewerPlugin2Test.java+++ b/Ghidra/Features/ByteViewer/src/test.slow/java/ghidra/app/plugin/core/byteviewer/ByteViewerPlugin2Test.java@@@ -619,9 -619,9 +619,9 @@@ public class ByteViewerPlugin2Test exteByteViewerComponent currentComponent = panel.getCurrentComponent();currentComponent.setCursorPosition(loc.getIndex(), loc.getFieldNum(), 0, 0);action.setSelected(true);- action.actionPerformed(new ActionContext());+ action.actionPerformed(new DefaultActionContext());});- waitForPostedSwingRunnables();+ waitForSwing();assertTrue(action.isSelected());assertEquals(ByteViewerComponentProvider.CHANGED_VALUE_COLOR, c.getFocusedCursorColor());@@@ -1529,8 -1529,8 +1529,8 @@@final DockingActionIf action = getAction(plugin, "Byte Viewer Options");assertTrue(action.isEnabled());- SwingUtilities.invokeLater(() -> action.actionPerformed(new ActionContext()));+ SwingUtilities.invokeLater(() -> action.actionPerformed(new DefaultActionContext()));- waitForPostedSwingRunnables();+ waitForSwing();ByteViewerOptionsDialog d = env.waitForDialogComponent(ByteViewerOptionsDialog.class, 2000);return d;}