Package ghidra.docking.settings
Interface EnumSettingsDefinition
- All Superinterfaces:
SettingsDefinition
- All Known Implementing Classes:
AddressRangeEndpointSettingsDefinition
,ByteCountSettingsDefinition
,CharsetSettingsDefinition
,CodeUnitCountSettingsDefinition
,CodeUnitOffsetSettingsDefinition
,DataTypeMnemonicSettingsDefinition
,EndianSettingsDefinition
,FloatingPointPrecisionSettingsDefinition
,FormatSettingsDefinition
,IntegerSignednessFormattingModeSettingsDefinition
,JavaEnumSettingsDefinition
,MemoryOffsetSettingsDefinition
,MutabilitySettingsDefinition
,PaddingSettingsDefinition
,PointerTypeSettingsDefinition
,RenderUnicodeSettingsDefinition
,TerminatedSettingsDefinition
,TranslationSettingsDefinition
Interface for a SettingsDefinition with enumerated values.
-
Method Summary
Modifier and TypeMethodDescriptionint
Returns the current value for this settingsgetDisplayChoice
(int value, Settings settings) Returns the String for the given enum valueString[]
getDisplayChoices
(Settings settings) Gets the list of choices as strings based on the current settingsdefault boolean
hasSameValue
(Settings settings1, Settings settings2) Check two settings for equality which correspond to this settings definition.void
Sets the given value into the settings object using this definition as a keyMethods inherited from interface ghidra.docking.settings.SettingsDefinition
clear, copySetting, getDescription, getName, getStorageKey, getValueString, hasValue
-
Method Details
-
getChoice
Returns the current value for this settings- Parameters:
settings
- The settings to search- Returns:
- the value for the settingsDefintions
-
setChoice
Sets the given value into the settings object using this definition as a key- Parameters:
settings
- the settings to store the value.value
- the settings value to be stored.
-
getDisplayChoice
Returns the String for the given enum value- Parameters:
value
- the value to get a display string forsettings
- the instance settings which may affect the results- Returns:
- the display string for the given settings.
-
getDisplayChoices
Gets the list of choices as strings based on the current settings- Parameters:
settings
- the instance settings- Returns:
- an array of strings which represent valid choices based on the current settings.
-
hasSameValue
Description copied from interface:SettingsDefinition
Check two settings for equality which correspond to this settings definition.- Specified by:
hasSameValue
in interfaceSettingsDefinition
- Parameters:
settings1
- first settingssettings2
- second settings- Returns:
- true if the same else false
-