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
-
Field Summary
Fields inherited from class ghidra.docking.settings.JavaEnumSettingsDefinition
valueNames
-
Method Summary
Modifier and TypeMethodDescriptiongetTranslatedValue
(Data data) Get the translated string value which been set at the specified address.boolean
hasTranslatedValue
(Data data) Determine if a translated string value has been set at the specified address.boolean
isShowTranslated
(Settings settings) void
setShowTranslated
(Settings settings, boolean shouldShowTranslatedValue) void
setTranslatedValue
(Data data, String translatedValue) Set the translated string value at the specified address.Methods inherited from class ghidra.docking.settings.JavaEnumSettingsDefinition
clear, copySetting, getChoice, getDefaultEnum, getDescription, getDisplayChoice, getDisplayChoices, getEnumByOrdinal, getEnumValue, getEnumValue, getName, getOrdinalByString, getStorageKey, getValueString, hasValue, setChoice, setEnumValue
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface ghidra.docking.settings.EnumSettingsDefinition
hasSameValue
-
Field Details
-
TRANSLATION
-
TRANSLATION_PROPERTY_MAP_NAME
-
-
Method Details
-
isShowTranslated
-
setShowTranslated
-
hasTranslatedValue
Determine if a translated string value has been set at the specified address.- Parameters:
data
- defined string data which may have a translation- Returns:
- true if translated string has been stored else false
-
getTranslatedValue
Get the translated string value which been set at the specified address.- Parameters:
data
- defined string data which may have a translation- Returns:
- translated string value or null
-
setTranslatedValue
Set the translated string value at the specified address.- Parameters:
data
- defined string data which may have a translationtranslatedValue
- translated string value or null to clear
-