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
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
getFullToolTipText
(DataType dataType) Examines the givedataType
and creates a tool tip for it, depending upon its actual class type.static HTMLDataTypeRepresentation
getHTMLRepresentation
(DataType dataType) Return dataType details as HTML.static String
getToolTipText
(DataType dataType) Examines the givedataType
and creates a tool tip for it, depending upon its actual class type.static String
getToolTipText
(Function function, boolean includeSymbolDetails) Return an HTML formatted rendering of a functionstatic String
getToolTipText
(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 givedataType
and 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 givedataType
and 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
-