org.eclipse.xtext.ui.editor.preferences
Interface IPreferenceStoreAccess

All Known Implementing Classes:
PreferenceStoreAccessImpl

public interface IPreferenceStoreAccess

Simplifies access to eclipse's preferences and properties.

Author:
Sven Efftinge

Method Summary
 org.eclipse.jface.preference.IPreferenceStore getContextPreferenceStore(java.lang.Object context)
          a read only preference store, used to obtain preferences, based on the given context.
 org.eclipse.jface.preference.IPreferenceStore getPreferenceStore()
          a read only preference store, used to obtain preferences, without any context.
 org.eclipse.jface.preference.IPreferenceStore getWritablePreferenceStore()
          a preference store, used to store persisted preferences.
 org.eclipse.jface.preference.IPreferenceStore getWritablePreferenceStore(java.lang.Object context)
          a preference store, used to store persisted preferences.
 

Method Detail

getPreferenceStore

org.eclipse.jface.preference.IPreferenceStore getPreferenceStore()
a read only preference store, used to obtain preferences, without any context. If you register an IPropertyChangeListener make sure to remove it on the same IPreferenceStore instance.


getContextPreferenceStore

org.eclipse.jface.preference.IPreferenceStore getContextPreferenceStore(java.lang.Object context)
a read only preference store, used to obtain preferences, based on the given context. typically the context would be an IProject and the result would be a preference store using the ProjectScope. If you register an IPropertyChangeListener make sure to remove it on the same IPreferenceStore instance.


getWritablePreferenceStore

org.eclipse.jface.preference.IPreferenceStore getWritablePreferenceStore()
a preference store, used to store persisted preferences. This is usually used by global preference pages. If you register an IPropertyChangeListener make sure to remove it on the same IPreferenceStore instance.


getWritablePreferenceStore

org.eclipse.jface.preference.IPreferenceStore getWritablePreferenceStore(java.lang.Object context)
a preference store, used to store persisted preferences. This is usually used by project properties pages. If you register an IPropertyChangeListener make sure to remove it on the same IPreferenceStore instance.

Parameters:
context - - the context is typically an IProject, results in a writable preference store for the project.