public class PreferenceStoreAccessImpl extends Object implements IPreferenceStoreAccess
| Constructor and Description |
|---|
PreferenceStoreAccessImpl() |
| Modifier and Type | Method and Description |
|---|---|
org.eclipse.jface.preference.IPreferenceStore |
getContextPreferenceStore(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 org.eclipse.core.resources.IProject |
getProject(Object context) |
protected String |
getQualifier() |
org.eclipse.jface.preference.IPreferenceStore |
getWritablePreferenceStore()
a preference store, used to store persisted preferences.
|
org.eclipse.jface.preference.IPreferenceStore |
getWritablePreferenceStore(Object context)
a preference store, used to store persisted preferences.
|
protected void |
lazyInitialize() |
void |
setLanguageNameAsQualifier(String languageName) |
public org.eclipse.jface.preference.IPreferenceStore getPreferenceStore()
IPreferenceStoreAccessIPropertyChangeListener make sure to remove it on the same
IPreferenceStore instance.getPreferenceStore in interface IPreferenceStoreAccesspublic org.eclipse.jface.preference.IPreferenceStore getContextPreferenceStore(Object context)
IPreferenceStoreAccessIProject 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 IPreferenceStoreAccesspublic org.eclipse.jface.preference.IPreferenceStore getWritablePreferenceStore()
IPreferenceStoreAccessIPropertyChangeListener make sure to remove it on the same
IPreferenceStore instance.getWritablePreferenceStore in interface IPreferenceStoreAccesspublic org.eclipse.jface.preference.IPreferenceStore getWritablePreferenceStore(Object context)
IPreferenceStoreAccessIPropertyChangeListener make sure to remove it on the same
IPreferenceStore instance.getWritablePreferenceStore in interface IPreferenceStoreAccesscontext - - the context is typically an IProject, results in a writable preference store for the project.protected org.eclipse.core.resources.IProject getProject(Object context)
@Inject public void setLanguageNameAsQualifier(String languageName)
protected String getQualifier()
protected void lazyInitialize()
Copyright © 2016. All Rights Reserved.