Ghidra is a software reverse engineering (SRE) framework
GP-0 revised tooltip when component not found in composite
ghidra168c5e3990e8a
diff --git a/Ghidra/Features/Decompiler/src/main/java/ghidra/app/decompiler/component/hover/DataTypeDecompilerHover.java b/Ghidra/Features/Decompiler/src/main/java/ghidra/app/decompiler/component/hover/DataTypeDecompilerHover.javaindex 9367c94678..11af9e6a18 100644--- a/Ghidra/Features/Decompiler/src/main/java/ghidra/app/decompiler/component/hover/DataTypeDecompilerHover.java+++ b/Ghidra/Features/Decompiler/src/main/java/ghidra/app/decompiler/component/hover/DataTypeDecompilerHover.java@@ -103,27 +103,24 @@ public class DataTypeDecompilerHover extends AbstractConfigurableHover// Field Name: fooField//- String BR = HTMLUtilities.BR;- StringBuilder newContent = new StringBuilder();- newContent.append("<TABLE>");+ StringBuilder buffy = new StringBuilder(HTMLUtilities.HTML);//@formatter:off- newContent.append(+ buffy.append("<TABLE>");+ buffy.append(row("Parent: ", HTMLUtilities.friendlyEncodeHTML(parentType.getName())));- newContent.append(+ buffy.append(row("Offset: ", NumericUtilities.toHexString(offset)));- newContent.append(+ buffy.append(row("Field Name: ", HTMLUtilities.friendlyEncodeHTML(token.getText())));+ buffy.append("</TABLE>");//@formatter:on- newContent.append("</TABLE>");-- newContent.append(BR).append("<HR WIDTH=\"95%\">").append(BR);+ if (fieldType != null) {+ buffy.append(HTMLUtilities.BR).append("<HR WIDTH=\"95%\">").append(HTMLUtilities.BR);+ buffy.append(ToolTipUtils.getHTMLRepresentation(fieldType).getFullHTMLContentString());+ }- String toolTipText = ToolTipUtils.getToolTipText(fieldType);- StringBuilder buffy = new StringBuilder(toolTipText);- int start = HTMLUtilities.HTML.length();- buffy.insert(start, newContent);return buffy.toString();}