public class EnumerationPreference<T extends Enum<T>> extends Preference<T>
PreferenceableOption.Listener, PreferenceableOption.PreferenceableOption2<T>
Modifier and Type | Field and Description |
---|---|
Class<T> |
type |
defaultValue, key, pluginId
Constructor and Description |
---|
EnumerationPreference(String pluginId,
String key,
T defaultValue,
Class<T> type) |
Modifier and Type | Method and Description |
---|---|
T |
getValueOf(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(String string)
PreferenceableOption
Copyright © 2005, 2018 IBM Corporation and others. All Rights Reserved.