Merge remote-tracking branch

'origin/GP-625-tomnelson-full-fix-1.2-SNAPSHOT...'
This commit is contained in:
ghidra1 2021-03-03 13:06:55 -05:00
commit 0f4026c682
12 changed files with 235 additions and 101 deletions

View file

@ -31,6 +31,7 @@ import ghidra.program.model.pcode.*;
import ghidra.service.graph.*;
import ghidra.util.Msg;
import java.util.*;
import static ghidra.service.graph.GraphDisplay.*;
public class GraphAST extends GhidraScript {
protected static final String COLOR_ATTRIBUTE = "Color";
@ -66,11 +67,12 @@ public class GraphAST extends GhidraScript {
buildGraph();
Map<String, String> properties = new HashMap<>();
properties.put("selectedVertexColor", "0xFF1493");
properties.put("selectedEdgeColor", "0xFF1493");
properties.put("initialLayoutAlgorithm", "Hierarchical MinCross Coffman Graham");
properties.put("displayVerticesAsIcons", "false");
properties.put("vertexLabelPosition", "S");
properties.put(SELECTED_VERTEX_COLOR, "0xFF1493");
properties.put(SELECTED_EDGE_COLOR, "0xFF1493");
properties.put(INITIAL_LAYOUT_ALGORITHM, "Hierarchical MinCross Coffman Graham");
properties.put(DISPLAY_VERTICES_AS_ICONS, "false");
properties.put(VERTEX_LABEL_POSITION, "S");
properties.put(ENABLE_EDGE_SELECTION, "true");
GraphDisplay graphDisplay =
graphDisplayBroker.getDefaultGraphDisplay(false, properties, monitor);
// graphDisplay.defineVertexAttribute(CODE_ATTRIBUTE); //