Package ghidra.program.model.data
Class AddressSpaceSettingsDefinition
java.lang.Object
ghidra.program.model.data.AddressSpaceSettingsDefinition
- All Implemented Interfaces:
SettingsDefinition
,StringSettingsDefinition
,TypeDefSettingsDefinition
public class AddressSpaceSettingsDefinition
extends Object
implements StringSettingsDefinition, TypeDefSettingsDefinition
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
addPreferredValues
(Object settingsOwner, Set<String> set) Add preferred setting values to the specified set as obtained from the specified settingsOwner.void
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.getAttributeSpecification
(Settings settings) Get theTypeDef
attribute specification for this setting and its current value.Returns a description of this settings definitiongetName()
Returns the display name of this SettingsDefinitionGet theSettings
key which is used when storing a key/value entry.String[]
getSuggestedValues
(Settings settings) Get suggested setting valuesGets the value for this SettingsDefinition given a Settings object.boolean
Determine if a setting value has been storedvoid
Sets the given value into the given settings object using this settingsDefinition as the key.boolean
Determine if this settings definition supports suggested values.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.StringSettingsDefinition
getValueString, hasSameValue
-
Field Details
-
DEF
-
-
Method Details
-
getValue
Description copied from interface:StringSettingsDefinition
Gets the value for this SettingsDefinition given a Settings object.- Specified by:
getValue
in interfaceStringSettingsDefinition
- 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
Description copied from interface:StringSettingsDefinition
Sets the given value into the given settings object using this settingsDefinition as the key.- Specified by:
setValue
in interfaceStringSettingsDefinition
- 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.
-
hasValue
Description copied from interface:SettingsDefinition
Determine if a setting value has been stored- Specified by:
hasValue
in interfaceSettingsDefinition
- Parameters:
settings
- stored settings- Returns:
- true if a value has been stored, else false
-
getName
Description copied from interface:SettingsDefinition
Returns the display name of this SettingsDefinition- Specified by:
getName
in interfaceSettingsDefinition
- Returns:
- display name for setting
-
getStorageKey
Description copied from interface:SettingsDefinition
Get theSettings
key which is used when storing a key/value entry.- Specified by:
getStorageKey
in interfaceSettingsDefinition
- Returns:
- settings storage key
-
getDescription
Description copied from interface:SettingsDefinition
Returns a description of this settings definition- Specified by:
getDescription
in interfaceSettingsDefinition
- Returns:
- setting description
-
clear
Description copied from interface:SettingsDefinition
Removes any values in the given settings object assocated with this settings definition- Specified by:
clear
in interfaceSettingsDefinition
- Parameters:
settings
- the settings object to be cleared.
-
copySetting
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
- Parameters:
srcSettings
- the settings to be copieddestSettings
- the settings to be updated.
-
getAttributeSpecification
Description copied from interface:TypeDefSettingsDefinition
Get theTypeDef
attribute specification for this setting and its current value.- Specified by:
getAttributeSpecification
in interfaceTypeDefSettingsDefinition
- Parameters:
settings
- typedef settings- Returns:
- attribute specification or null if not currently set.
-
getSuggestedValues
Description copied from interface:StringSettingsDefinition
Get suggested setting values- Specified by:
getSuggestedValues
in interfaceStringSettingsDefinition
- Parameters:
settings
- settings object- Returns:
- suggested settings or null if none or unsupported;
-
supportsSuggestedValues
public boolean supportsSuggestedValues()Description copied from interface:StringSettingsDefinition
Determine if this settings definition supports suggested values. SeeStringSettingsDefinition.getSuggestedValues(Settings)
.- Specified by:
supportsSuggestedValues
in interfaceStringSettingsDefinition
- Returns:
- true if suggested values are supported, else false.
-
addPreferredValues
Description copied from interface:StringSettingsDefinition
Add preferred setting values to the specified set as obtained from the specified settingsOwner.- Specified by:
addPreferredValues
in interfaceStringSettingsDefinition
- 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.
-