Package ghidra.docking.settings
Interface BooleanSettingsDefinition
- All Superinterfaces:
SettingsDefinition
- All Known Implementing Classes:
FunctionInlineSettingsDefinition
,FunctionNoReturnSettingsDefinition
,FunctionThunkSettingsDefinition
The inteface for SettingsDefinitions that have boolean values. SettingsDefinitions
objects are used as keys into Settings objects that contain the values using a name-value
type storage mechanism.
-
Method Summary
Modifier and TypeMethodDescriptionboolean
gets the value for this SettingsDefinition given a Settings object.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.Methods inherited from interface ghidra.docking.settings.SettingsDefinition
clear, copySetting, getDescription, getName, getStorageKey, getValueString, 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 values 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.
-
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
-