org.eclipse.xtext.ui.editor.preferences
Class PreferenceStoreAccessImpl

java.lang.Object
  extended by org.eclipse.xtext.ui.editor.preferences.PreferenceStoreAccessImpl
All Implemented Interfaces:
IPreferenceStoreAccess

public class PreferenceStoreAccessImpl
extends java.lang.Object
implements IPreferenceStoreAccess

Author:
Sven Efftinge - Initial contribution and API

Constructor Summary
PreferenceStoreAccessImpl()
           
 
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.
protected  java.lang.String getQualifier()
           
 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.
protected  void lazyInitialize()
           
 void setLanguageNameAsQualifier(java.lang.String languageName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PreferenceStoreAccessImpl

public PreferenceStoreAccessImpl()
Method Detail

getPreferenceStore

public org.eclipse.jface.preference.IPreferenceStore getPreferenceStore()
Description copied from interface: IPreferenceStoreAccess
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.

Specified by:
getPreferenceStore in interface IPreferenceStoreAccess

getContextPreferenceStore

public org.eclipse.jface.preference.IPreferenceStore getContextPreferenceStore(java.lang.Object context)
Description copied from interface: IPreferenceStoreAccess
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.

Specified by:
getContextPreferenceStore in interface IPreferenceStoreAccess

getWritablePreferenceStore

public org.eclipse.jface.preference.IPreferenceStore getWritablePreferenceStore()
Description copied from interface: IPreferenceStoreAccess
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.

Specified by:
getWritablePreferenceStore in interface IPreferenceStoreAccess

getWritablePreferenceStore

public org.eclipse.jface.preference.IPreferenceStore getWritablePreferenceStore(java.lang.Object context)
Description copied from interface: IPreferenceStoreAccess
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.

Specified by:
getWritablePreferenceStore in interface IPreferenceStoreAccess
Parameters:
context - - the context is typically an IProject, results in a writable preference store for the project.

setLanguageNameAsQualifier

@Inject
public void setLanguageNameAsQualifier(java.lang.String languageName)

getQualifier

protected java.lang.String getQualifier()

lazyInitialize

protected void lazyInitialize()