Package ghidra.docking.settings
Interface StringSettingsDefinition
- All Superinterfaces:
SettingsDefinition
- All Known Implementing Classes:
AddressSpaceSettingsDefinition
-
Method Summary
Modifier and TypeMethodDescriptiondefault boolean
addPreferredValues
(Object settingsOwner, Set<String> set) Add preferred setting values to the specified set as obtained from the specified settingsOwner.default String[]
getSuggestedValues
(Settings settings) Get suggested setting valuesGets the value for this SettingsDefinition given a Settings object.default String
getValueString
(Settings settings) Get the setting value as a string which corresponds to this definition.default boolean
hasSameValue
(Settings settings1, Settings settings2) Check two settings for equality which correspond to this settings definition.void
Sets the given value into the given settings object using this settingsDefinition as the key.default boolean
Determine if this settings definition supports suggested values.Methods inherited from interface ghidra.docking.settings.SettingsDefinition
clear, copySetting, getDescription, getName, getStorageKey, hasValue
-
Method Details
-
getValue
Gets the value for this SettingsDefinition given a Settings object.- Parameters:
settings
- the set of Settings values for a particular location or null for default value.- Returns:
- the value for this settings object given the context.
-
setValue
Sets the given value into the given settings object using this settingsDefinition as the key.- Parameters:
settings
- the settings object to store the value in.value
- the value to store in the settings object using this settingsDefinition as the key.
-
getValueString
Description copied from interface:SettingsDefinition
Get the setting value as a string which corresponds to this definition. A default value string will be returned if a setting has not been stored.- Specified by:
getValueString
in interfaceSettingsDefinition
- Parameters:
settings
- settings- Returns:
- value string or null if not set and default has not specified by this definition
-
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
-
getSuggestedValues
Get suggested setting values- Parameters:
settings
- settings object- Returns:
- suggested settings or null if none or unsupported;
-
supportsSuggestedValues
default boolean supportsSuggestedValues()Determine if this settings definition supports suggested values. SeegetSuggestedValues(Settings)
.- Returns:
- true if suggested values are supported, else false.
-
addPreferredValues
Add preferred setting values to the specified set as obtained from the specified settingsOwner.- Parameters:
settingsOwner
- settings owner from which a definition may query preferred values. Supported values are specific to this settings definition. An unsupported settingsOwner will return false.set
- value set to which values should be added- Returns:
- true if settingsOwner is supported and set updated, else false.
-