Class ScopedPreferenceStore
java.lang.Object
org.eclipse.core.commands.common.EventManager
org.eclipse.jface.preference.ScopedPreferenceStore
org.eclipse.ui.preferences.ScopedPreferenceStore
- All Implemented Interfaces:
IPersistentPreferenceStore, IPreferenceStore
The ScopedPreferenceStore is an IPreferenceStore that uses the scopes
provided in org.eclipse.core.runtime.preferences.
A ScopedPreferenceStore does the lookup of a preference based on it's search scopes and sets the value of the preference based on its store scope.
The default scope is always included in the search scopes when searching for preference values.
Note: This class is kept for backwards compatibility. Users are encouraged to use the JFace preference store in order to avoid a hard dependency on the Eclipse 3.x API.
- Since:
- 3.1
- See Also:
-
Field Summary
Fields inherited from class ScopedPreferenceStore
silentRunningFields inherited from interface IPreferenceStore
BOOLEAN_DEFAULT_DEFAULT, DOUBLE_DEFAULT_DEFAULT, FALSE, FLOAT_DEFAULT_DEFAULT, INT_DEFAULT_DEFAULT, LONG_DEFAULT_DEFAULT, STRING_DEFAULT_DEFAULT, TRUE -
Constructor Summary
ConstructorsConstructorDescriptionScopedPreferenceStore(IScopeContext context, String qualifier) Create a new instance of the receiver.ScopedPreferenceStore(IScopeContext context, String qualifier, String defaultQualifierPath) Create a new instance of the receiver. -
Method Summary
Methods inherited from class ScopedPreferenceStore
addPropertyChangeListener, contains, firePropertyChangeEvent, getBoolean, getDefaultBoolean, getDefaultDouble, getDefaultFloat, getDefaultInt, getDefaultLong, getDefaultString, getDouble, getFloat, getInstance, getInt, getLong, getPreferenceNodes, getString, isDefault, needsSaving, putValue, removePropertyChangeListener, save, setDefault, setDefault, setDefault, setDefault, setDefault, setDefault, setSearchContexts, setToDefault, setValue, setValue, setValue, setValue, setValue, setValueMethods inherited from class EventManager
addListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObject
-
Constructor Details
-
ScopedPreferenceStore
Create a new instance of the receiver. Store the values in context in the node looked up by qualifier. NOTE: Any instance of ScopedPreferenceStore should call- Parameters:
context- the scope to store toqualifier- the qualifier used to look up the preference nodedefaultQualifierPath- the qualifier used when looking up the defaults
-
ScopedPreferenceStore
Create a new instance of the receiver. Store the values in context in the node looked up by qualifier.- Parameters:
context- the scope to store toqualifier- the qualifer used to look up the preference node
-