public class EnumerationPreference<T extends java.lang.Enum<T>> extends Preference<T>
PreferenceableOption.Listener, PreferenceableOption.PreferenceableOption2<T>
Modifier and Type | Field and Description |
---|---|
java.lang.Class<T> |
type |
defaultValue, key, pluginId
Constructor and Description |
---|
EnumerationPreference(java.lang.String pluginId,
java.lang.String key,
T defaultValue,
java.lang.Class<T> type) |
Modifier and Type | Method and Description |
---|---|
T |
getValueOf(java.lang.String string)
Returns an option value from a String typically obtained from an Eclipse Preference file.
|
addListener, fireChanged, getDefaultValue, getKey, getPluginId, getPreferredValue, removeListener, setDefaultValue, toString
public T getValueOf(java.lang.String string)
PreferenceableOption