Class ScopedPreferenceStore

All Implemented Interfaces:
IPersistentPreferenceStore, IPreferenceStore

public class ScopedPreferenceStore extends ScopedPreferenceStore
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:
  • Constructor Details

    • ScopedPreferenceStore

      public ScopedPreferenceStore(IScopeContext context, String qualifier, String defaultQualifierPath)
      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 to
      qualifier - the qualifier used to look up the preference node
      defaultQualifierPath - the qualifier used when looking up the defaults
    • ScopedPreferenceStore

      public ScopedPreferenceStore(IScopeContext context, String qualifier)
      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 to
      qualifier - the qualifer used to look up the preference node