Package ghidra.app.util
Class ToolTipUtils
java.lang.Object
ghidra.app.util.ToolTipUtils
A utility class that creates tool tip text for given data types.
- Since:
- Tracker Id 616
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetFullToolTipText(DataType dataType) Examines the givedataTypeand creates a tool tip for it, depending upon its actual class type.static HTMLDataTypeRepresentationgetHTMLRepresentation(DataType dataType) Return dataType details as HTML.static StringgetToolTipText(DataType dataType) Examines the givedataTypeand creates a tool tip for it, depending upon its actual class type.static StringgetToolTipText(Function function, boolean includeSymbolDetails) Return an HTML formatted rendering of a functionstatic StringgetToolTipText(ExternalLocation extLoc, boolean includeSymbolDetails) Return an HTML formatted rendering of an external location/function.
-
Field Details
-
LINE_LENGTH
public static final int LINE_LENGTH- See Also:
-
-
Method Details
-
getToolTipText
Examines the givedataTypeand creates a tool tip for it, depending upon its actual class type.Note: the text returned here will be truncated as needed for the type of data. To get the full tool tip text, use
getFullToolTipText(DataType).- Parameters:
dataType- The data type from which a tool tip will be created.- Returns:
- tool tip text for the given data type.
-
getFullToolTipText
Examines the givedataTypeand creates a tool tip for it, depending upon its actual class type.Note: the text returned here will not be truncated. This can result in tool tip windows that are too large to fit in the screen. For truncated tool tip text, use
getToolTipText(DataType).- Parameters:
dataType- The data type from which a tool tip will be created.- Returns:
- tool tip text for the given data type.
-
getHTMLRepresentation
Return dataType details as HTML.- Parameters:
dataType- the dataType to be represented- Returns:
- dataType details formatted as HTML
-
getToolTipText
Return an HTML formatted rendering of an external location/function.- Parameters:
extLoc- the locationincludeSymbolDetails- true to include details of the symbol- Returns:
- tool tip text for the given external location/function
-
getToolTipText
Return an HTML formatted rendering of a function- Parameters:
function- the functionincludeSymbolDetails- true to include details of the symbol- Returns:
- tool tip text for the given function
-