Package ghidra.docking.settings
Interface EnumSettingsDefinition
-
- All Superinterfaces:
SettingsDefinition
- All Known Implementing Classes:
ByteCountSettingsDefinition
,CharsetSettingsDefinition
,CodeUnitCountSettingsDefinition
,CodeUnitOffsetSettingsDefinition
,DataTypeMnemonicSettingsDefinition
,EndianSettingsDefinition
,FloatingPointPrecisionSettingsDefinition
,FormatSettingsDefinition
,IntegerSignednessFormattingModeSettingsDefinition
,JavaEnumSettingsDefinition
,MemoryOffsetSettingsDefinition
,MutabilitySettingsDefinition
,PaddingSettingsDefinition
,RenderUnicodeSettingsDefinition
,TerminatedSettingsDefinition
,TranslationSettingsDefinition
public interface EnumSettingsDefinition extends SettingsDefinition
Interface for a SettingsDefinition with enumerated values.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
getChoice(Settings settings)
Returns the current value for this settingsjava.lang.String
getDisplayChoice(int value, Settings settings)
Returns the String for the given enum valuejava.lang.String[]
getDisplayChoices(Settings settings)
Gets the list of choices as strings based on the current settingsvoid
setChoice(Settings settings, int value)
Sets the given value into the settings object using this definition as a key-
Methods inherited from interface ghidra.docking.settings.SettingsDefinition
clear, copySetting, getDescription, getName, hasValue
-
-
-
-
Method Detail
-
getChoice
int getChoice(Settings settings)
Returns the current value for this settings- Parameters:
settings
- The settings to search- Returns:
- the value for the settingsDefintions
-
setChoice
void setChoice(Settings settings, int value)
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
java.lang.String getDisplayChoice(int value, Settings settings)
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
java.lang.String[] getDisplayChoices(Settings settings)
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.
-
-