Package ghidra.framework.options
Interface CustomOption
- All Known Implementing Classes:
AddressFieldOptionsWrappedOption,ArrayElementWrappedOption,EolExtraCommentsOption,ManualViewerCommandWrappedOption,NamespaceWrappedOption
public interface CustomOption
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringKey which corresponds to custom option implementation class. -
Method Summary
Modifier and TypeMethodDescriptionvoidreadState(GProperties properties) Read state from the given propertiestoString()Subclasses should implement this method to provide a formatted string value of this option value.voidwriteState(GProperties properties) Write state into the given properties
-
Field Details
-
CUSTOM_OPTION_CLASS_NAME_KEY
Key which corresponds to custom option implementation class. The use of this key/value within the stored state information is reserved for use by the option storage implementation and should be ignored byreadState(GProperties)implementation.- See Also:
-
-
Method Details
-
readState
Read state from the given properties- Parameters:
properties- container of state information
-
writeState
Write state into the given properties- Parameters:
properties- container of state information
-
toString
String toString()Subclasses should implement this method to provide a formatted string value of this option value. The returned value will be used in support of theOptions.getValueAsString(String)andOptions.getDefaultValueAsString(String).
-