mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-09-28 17:11:11 -09:00
Test fixes
This commit is contained in:
@@ -15,8 +15,7 @@
|
||||
*/
|
||||
package ghidra.graph;
|
||||
|
||||
import java.util.Map;
|
||||
import java.util.Set;
|
||||
import java.util.*;
|
||||
|
||||
import docking.action.DockingActionIf;
|
||||
import docking.widgets.EventTrigger;
|
||||
@@ -62,8 +61,7 @@ public class TestGraphDisplay implements GraphDisplay {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setGraph(AttributedGraph graph, String title, boolean append,
|
||||
TaskMonitor monitor)
|
||||
public void setGraph(AttributedGraph graph, String title, boolean append, TaskMonitor monitor)
|
||||
throws CancelledException {
|
||||
if (append) {
|
||||
this.graph = mergeGraphs(graph, this.graph);
|
||||
@@ -113,6 +111,11 @@ public class TestGraphDisplay implements GraphDisplay {
|
||||
// do nothing, actions are not supported by this display
|
||||
}
|
||||
|
||||
@Override
|
||||
public Collection<DockingActionIf> getActions() {
|
||||
return Collections.emptyList();
|
||||
}
|
||||
|
||||
private AttributedGraph mergeGraphs(AttributedGraph newGraph, AttributedGraph oldGraph) {
|
||||
for (AttributedVertex vertex : oldGraph.vertexSet()) {
|
||||
newGraph.addVertex(vertex);
|
||||
|
||||
Reference in New Issue
Block a user