public class MapBasedPreferenceValues extends java.lang.Object implements ITypedPreferenceValues, IPreferenceValuesProvider
IPreferenceValuesProvider.SimplePreferenceValuesProvider, IPreferenceValuesProvider.SingletonPreferenceValuesProvider
Constructor and Description |
---|
MapBasedPreferenceValues(IPreferenceValues delegate,
java.util.Map<java.lang.String,java.lang.String> values) |
MapBasedPreferenceValues(java.util.Map<java.lang.String,java.lang.String> values) |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
IPreferenceValues |
getDelegate() |
java.lang.String |
getPreference(PreferenceKey key) |
<T> T |
getPreference(TypedPreferenceKey<T> key) |
IPreferenceValues |
getPreferenceValues(org.eclipse.emf.ecore.resource.Resource context) |
java.util.Map<java.lang.String,java.lang.String> |
getValues() |
void |
put(PreferenceKey key,
java.lang.Object value) |
void |
put(java.lang.String key,
java.lang.String value) |
<T> void |
put(TypedPreferenceKey<T> key,
T value) |
java.lang.String |
toString() |
public MapBasedPreferenceValues(IPreferenceValues delegate, java.util.Map<java.lang.String,java.lang.String> values)
public MapBasedPreferenceValues(java.util.Map<java.lang.String,java.lang.String> values)
public void clear()
public IPreferenceValues getDelegate()
public java.lang.String getPreference(PreferenceKey key)
getPreference
in interface IPreferenceValues
public <T> T getPreference(TypedPreferenceKey<T> key)
getPreference
in interface ITypedPreferenceValues
public IPreferenceValues getPreferenceValues(org.eclipse.emf.ecore.resource.Resource context)
getPreferenceValues
in interface IPreferenceValuesProvider
public java.util.Map<java.lang.String,java.lang.String> getValues()
public void put(PreferenceKey key, java.lang.Object value)
public void put(java.lang.String key, java.lang.String value)
public <T> void put(TypedPreferenceKey<T> key, T value)
public java.lang.String toString()
toString
in class java.lang.Object