Package ghidra.app.util.viewer.field
Class ExecutableTaskStringHandler
java.lang.Object
ghidra.app.util.viewer.field.ExecutableTaskStringHandler
- All Implemented Interfaces:
- AnnotatedStringHandler,- ExtensionPoint
- 
Field SummaryFields inherited from interface ghidra.app.util.viewer.field.AnnotatedStringHandlerDUMMY_MOUSE_HANDLER
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptioncreateAnnotatedString(AttributedString prototypeString, String[] text, Program program) Creates anFieldElementbased upon the give array of Strings.Returns the String that represents the GUI presence of this optionReturns an example string of how the annotation is usedgetPrototypeString(String displayText) Returns an example string of how the annotation is usedString[]Returns the annotation string names that this AnnotatedStringHandler supports (e.g., "symbol", "address", etc...).booleanhandleMouseClick(String[] annotationParts, Navigatable sourceNavigatable, ServiceProvider serviceProvider) A method that is notified when an annotation is clicked.
- 
Constructor Details- 
ExecutableTaskStringHandlerpublic ExecutableTaskStringHandler()
 
- 
- 
Method Details- 
createAnnotatedStringpublic AttributedString createAnnotatedString(AttributedString prototypeString, String[] text, Program program) throws AnnotationException Description copied from interface:AnnotatedStringHandlerCreates anFieldElementbased upon the give array of Strings. The first String in the list is expected to be the annotation tag used to create the annotation. At the very least the array is expected to be comprised of two elements, the annotation and some data. Extra data may be provided as needed by implementing classes.- Specified by:
- createAnnotatedStringin interface- AnnotatedStringHandler
- Parameters:
- prototypeString- The prototype- FieldElementthat dictates the attributes for the newly created string. Implementations may change attributes as needed.
- text- An array of Strings used to create the- FieldElementbeing returned.
- program- The program with which the returned string is associated.
- Returns:
- An AnnotatedTextFieldElementthat will be used to render the given text.
- Throws:
- AnnotationException- if the given text data does not fit the expected format for the given handler implementation.
 
- 
getDisplayStringDescription copied from interface:AnnotatedStringHandlerReturns the String that represents the GUI presence of this option- Specified by:
- getDisplayStringin interface- AnnotatedStringHandler
- Returns:
- the String to display in GUI components.
 
- 
getPrototypeStringDescription copied from interface:AnnotatedStringHandlerReturns an example string of how the annotation is used- Specified by:
- getPrototypeStringin interface- AnnotatedStringHandler
- Returns:
- the example of how this is used.
 
- 
getSupportedAnnotationsDescription copied from interface:AnnotatedStringHandlerReturns the annotation string names that this AnnotatedStringHandler supports (e.g., "symbol", "address", etc...).- Specified by:
- getSupportedAnnotationsin interface- AnnotatedStringHandler
- Returns:
- the annotation string names that this AnnotatedStringHandler supports.
 
- 
getPrototypeStringDescription copied from interface:AnnotatedStringHandlerReturns an example string of how the annotation is used- Specified by:
- getPrototypeStringin interface- AnnotatedStringHandler
- Parameters:
- displayText- The text that may be wrapped, cannot be null
- Returns:
- the example of how this is used.
 
 
-