T
- the type of the option's valuepublic interface PreferenceableOption<T>
The behavior is identified by a key and has a value with a type T and a defaultValue.
The value may be persisted as a string and reconstructed by getValueOf(String)
.
Modifier and Type | Interface and Description |
---|---|
static interface |
PreferenceableOption.Listener
A Listener may be added to a PreferenceableOption2 and notified of changes in the option.
|
static interface |
PreferenceableOption.PreferenceableOption2<T>
The extended PreferenceableOption identifies a configurable behavior suitable for use in a Preference
or Property Page.
|
Modifier and Type | Method and Description |
---|---|
T |
getDefaultValue()
Obtains the option's default value.
|
String |
getKey()
Obtains my string key, which may be used for persistence in a
preference store.
|
String |
getPluginId()
Returns the plugin qualifier for the key.
|
T |
getValueOf(String string)
Returns an option value from a String typically obtained from an Eclipse Preference file.
|
T getDefaultValue()
null
String getKey()
null
String getPluginId()
Copyright © 2005, 2018 IBM Corporation and others. All Rights Reserved.