mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-05-27 23:17:03 +08:00
GP-0 Corrected swing related issues affecting testing
This commit is contained in:
@@ -29,6 +29,7 @@ import ghidra.program.model.address.AddressSet;
|
|||||||
import ghidra.program.model.listing.Program;
|
import ghidra.program.model.listing.Program;
|
||||||
import ghidra.program.util.ProgramLocation;
|
import ghidra.program.util.ProgramLocation;
|
||||||
import ghidra.program.util.ProgramSelection;
|
import ghidra.program.util.ProgramSelection;
|
||||||
|
import ghidra.util.Swing;
|
||||||
import ghidra.util.SystemUtilities;
|
import ghidra.util.SystemUtilities;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -64,7 +65,9 @@ public class GhidraState {
|
|||||||
this.currentHighlight = highlight;
|
this.currentHighlight = highlight;
|
||||||
this.isGlobalState = true;
|
this.isGlobalState = true;
|
||||||
if (!SystemUtilities.isInHeadlessMode()) {
|
if (!SystemUtilities.isInHeadlessMode()) {
|
||||||
gatherParamPanel = new GatherParamPanel(this);
|
Swing.runNow(() -> {
|
||||||
|
gatherParamPanel = new GatherParamPanel(this);
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+4
-2
@@ -84,8 +84,10 @@ public class GhidraScriptAskMethodsTest extends AbstractGhidraHeadedIntegrationT
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void clearScriptCachedValues() {
|
private void clearScriptCachedValues() {
|
||||||
Map<?, ?> map = (Map<?, ?>) TestUtils.getInstanceField("askMap", script);
|
if (script != null) {
|
||||||
map.clear();
|
Map<?, ?> map = (Map<?, ?>) TestUtils.getInstanceField("askMap", script);
|
||||||
|
map.clear();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
|||||||
Reference in New Issue
Block a user