public class PreferenceStoreAccessImpl extends java.lang.Object implements IPreferenceStoreAccess
Constructor and Description |
---|
PreferenceStoreAccessImpl() |
Modifier and Type | Method and Description |
---|---|
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 . |
org.eclipse.jface.preference.IPreferenceStore |
getPreferenceStore()
a read only preference store, used to obtain preferences, without any context.
|
protected org.eclipse.core.resources.IProject |
getProject(java.lang.Object 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) |
public org.eclipse.jface.preference.IPreferenceStore getPreferenceStore()
IPreferenceStoreAccess
IPropertyChangeListener
make sure to remove it on the same
IPreferenceStore
instance.getPreferenceStore
in interface IPreferenceStoreAccess
public org.eclipse.jface.preference.IPreferenceStore getContextPreferenceStore(java.lang.Object context)
IPreferenceStoreAccess
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.getContextPreferenceStore
in interface IPreferenceStoreAccess
public org.eclipse.jface.preference.IPreferenceStore getWritablePreferenceStore()
IPreferenceStoreAccess
IPropertyChangeListener
make sure to remove it on the same
IPreferenceStore
instance.getWritablePreferenceStore
in interface IPreferenceStoreAccess
public org.eclipse.jface.preference.IPreferenceStore getWritablePreferenceStore(java.lang.Object context)
IPreferenceStoreAccess
IPropertyChangeListener
make sure to remove it on the same
IPreferenceStore
instance.getWritablePreferenceStore
in interface IPreferenceStoreAccess
context
- - the context is typically an IProject, results in a writable preference store for the project.protected org.eclipse.core.resources.IProject getProject(java.lang.Object context)
@Inject public void setLanguageNameAsQualifier(java.lang.String languageName)
protected java.lang.String getQualifier()
protected void lazyInitialize()