Class StringOption
- java.lang.Object
-
- com.e1c.g5.v8.dt.formatter.ui.preferences.option.AbstractOption<String>
-
- com.e1c.g5.v8.dt.formatter.ui.preferences.option.StringOption
-
- Direct Known Subclasses:
MultiStringOption
public class StringOption extends AbstractOption<String>
This class represents an option that can be written to preferences and used to build UI representation of option
-
-
Field Summary
Fields Modifier and Type Field Description protected IPreferenceManager
manager
The manager to service write/read operationsprotected org.eclipse.jface.preference.IPreferenceStore
store
The store to service write/read operations with lower priority thanmanager
-
Fields inherited from class com.e1c.g5.v8.dt.formatter.ui.preferences.option.AbstractOption
control, value
-
-
Constructor Summary
Constructors Constructor Description StringOption(String preferenceKey, String presentation, IPreferenceManager manager, org.eclipse.jface.preference.IPreferenceStore store)
Creates new instance of StringOption
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
restoreDefault()
Restores default value for this optionvoid
uploadValue()
Reads current value fromIPreferenceManager
and sets it withIOption.setValue(Object)
or in any other way with followingIOption.setValue(Object)
protocolvoid
writeSelf()
Writes it self to the preferences with givenIPreferenceManager
-
Methods inherited from class com.e1c.g5.v8.dt.formatter.ui.preferences.option.AbstractOption
getPreferenceKey, getPresentation, getValue, handleSelection, setControl, setUploaded, setValue
-
-
-
-
Field Detail
-
manager
protected final IPreferenceManager manager
The manager to service write/read operations
-
store
protected final org.eclipse.jface.preference.IPreferenceStore store
The store to service write/read operations with lower priority thanmanager
-
-
Constructor Detail
-
StringOption
public StringOption(String preferenceKey, String presentation, IPreferenceManager manager, org.eclipse.jface.preference.IPreferenceStore store)
Creates new instance of StringOption- Parameters:
prefrenceKey
- The associated to this option preference key, cannot benull
presentation
- The options presentation that describes its aim, cannot benull
manager
- The manager to write/read to local plug-in preferences, can benull
store
- The bound store with which this option is associated with, any read/write will be adjusted to it, can benull
-
-
Method Detail
-
writeSelf
public void writeSelf()
Description copied from interface:IOption
Writes it self to the preferences with givenIPreferenceManager
-
uploadValue
public void uploadValue()
Description copied from interface:IOption
Reads current value fromIPreferenceManager
and sets it withIOption.setValue(Object)
or in any other way with followingIOption.setValue(Object)
protocol- See Also:
IOption.setValue(Object)
-
restoreDefault
public void restoreDefault()
Description copied from interface:IOption
Restores default value for this option
-
-