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>
Constructor and Description |
---|
ObjectOption(String pluginId,
String key,
T defaultValue,
Class<? extends T> classType) |
Modifier and Type | Method and Description |
---|---|
T |
getValueOf(String string)
Returns an option value from a String typically obtained from an Eclipse Preference file.
|
getDefaultValue, getKey, getPluginId, toString
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
getDefaultValue, getKey, getPluginId
public T getValueOf(String string)
PreferenceableOption
getValueOf
in interface PreferenceableOption<T>
Copyright © 2005, 2018 IBM Corporation and others. All Rights Reserved.