public class ObjectOption<T> extends BasicOption<T> implements PreferenceableOption<T>
PreferenceableOption
interface for object OCL options.
When persisted as a preference, the representation is a Java-class name followed by a dot and
then the static object name. e.g. "org.eclipse.emf.ecore.EPackage$Literals.EOBJECT" or "null".PreferenceableOption.Listener, PreferenceableOption.PreferenceableOption2<T>
Modifier and Type | Field and Description |
---|---|
protected java.lang.Class<?> |
classType |
Constructor and Description |
---|
ObjectOption(java.lang.String pluginId,
java.lang.String key,
T defaultValue,
java.lang.Class<? extends T> classType) |
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.
|
getDefaultValue, getKey, getPluginId, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getDefaultValue, getKey, getPluginId
public T getValueOf(java.lang.String string)
PreferenceableOption
getValueOf
in interface PreferenceableOption<T>