mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-05 10:49:34 +02:00
Merge remote-tracking branch 'origin/GP-949_largepapyrus_added_hover_attribute_containing_tooltip--SQUASHED' into Ghidra_10.0
This commit is contained in:
commit
f494ccaca7
2 changed files with 43 additions and 17 deletions
|
@ -15,6 +15,7 @@
|
|||
*/
|
||||
package ghidra.app.plugin.core.datamgr.actions;
|
||||
|
||||
import ghidra.app.util.ToolTipUtils;
|
||||
import ghidra.program.model.data.*;
|
||||
import ghidra.service.graph.*;
|
||||
import ghidra.util.Msg;
|
||||
|
@ -37,7 +38,6 @@ public class TypeGraphTask extends Task {
|
|||
public static final String TYPE_ATTRIBUTE = "Type";
|
||||
public static final String EMBEDDED = "Composite";
|
||||
public static final String POINTER = "Reference";
|
||||
public static final String CONTENTS_ATTRIBUTE = "Contents";
|
||||
|
||||
/*
|
||||
* Constructor
|
||||
|
@ -87,7 +87,8 @@ public class TypeGraphTask extends Task {
|
|||
AttributedVertex lastVertex, String edgeType, TaskMonitor monitor)
|
||||
throws CancelledException {
|
||||
AttributedVertex newVertex = new AttributedVertex(struct.getName());
|
||||
newVertex.setAttribute(CONTENTS_ATTRIBUTE, struct.toString());
|
||||
newVertex.setDescription(ToolTipUtils.getToolTipText(struct));
|
||||
|
||||
if (lastVertex == null) {
|
||||
graph.addVertex(newVertex);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue