Package ghidra.program.model.data
Class TranslationSettingsDefinition
- java.lang.Object
-
- ghidra.docking.settings.JavaEnumSettingsDefinition<TranslationSettingsDefinition.TRANSLATION_ENUM>
-
- ghidra.program.model.data.TranslationSettingsDefinition
-
- All Implemented Interfaces:
EnumSettingsDefinition
,SettingsDefinition
public class TranslationSettingsDefinition extends JavaEnumSettingsDefinition<TranslationSettingsDefinition.TRANSLATION_ENUM>
SettingsDefinition for translation display, handles both the toggle of "show" vs "don't show", as well as accessing the translated value.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TranslationSettingsDefinition.TRANSLATION_ENUM
-
Field Summary
Fields Modifier and Type Field Description static TranslationSettingsDefinition
TRANSLATION
-
Fields inherited from class ghidra.docking.settings.JavaEnumSettingsDefinition
valueNames
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clear(Settings settings)
Removes any values in the given settings object assocated with this settings definitionvoid
copySetting(Settings srcSettings, Settings destSettings)
Copies any setting value associated with this settings definition from the srcSettings settings to the destSettings.java.lang.String
getTranslatedValue(Settings settings)
boolean
hasTranslatedValue(Settings settings)
boolean
isShowTranslated(Settings settings)
void
setShowTranslated(Settings settings, boolean shouldShowTranslatedValue)
void
setTranslatedValue(Settings settings, java.lang.String translatedValue)
-
Methods inherited from class ghidra.docking.settings.JavaEnumSettingsDefinition
getChoice, getDefaultEnum, getDescription, getDisplayChoice, getDisplayChoices, getEnumByOrdinal, getEnumValue, getEnumValue, getName, getOrdinalByString, getSettingName, hasValue, setChoice, setEnumValue
-
-
-
-
Field Detail
-
TRANSLATION
public static final TranslationSettingsDefinition TRANSLATION
-
-
Method Detail
-
isShowTranslated
public boolean isShowTranslated(Settings settings)
-
setShowTranslated
public void setShowTranslated(Settings settings, boolean shouldShowTranslatedValue)
-
hasTranslatedValue
public boolean hasTranslatedValue(Settings settings)
-
getTranslatedValue
public java.lang.String getTranslatedValue(Settings settings)
-
setTranslatedValue
public void setTranslatedValue(Settings settings, java.lang.String translatedValue)
-
clear
public void clear(Settings settings)
Description copied from interface:SettingsDefinition
Removes any values in the given settings object assocated with this settings definition- Specified by:
clear
in interfaceSettingsDefinition
- Overrides:
clear
in classJavaEnumSettingsDefinition<TranslationSettingsDefinition.TRANSLATION_ENUM>
- Parameters:
settings
- the settings object to be cleared.- See Also:
generic.settings.SettingsDefinition#clear(generic.settings.Settings)
-
copySetting
public void copySetting(Settings srcSettings, Settings destSettings)
Description copied from interface:SettingsDefinition
Copies any setting value associated with this settings definition from the srcSettings settings to the destSettings.- Specified by:
copySetting
in interfaceSettingsDefinition
- Overrides:
copySetting
in classJavaEnumSettingsDefinition<TranslationSettingsDefinition.TRANSLATION_ENUM>
- Parameters:
srcSettings
- the settings to be copieddestSettings
- the settings to be updated.- See Also:
generic.settings.SettingsDefinition#copySetting(generic.settings.Settings, generic.settings.Settings)
-
-