Class BooleanOption
- java.lang.Object
-
- com.e1c.g5.v8.dt.formatter.ui.preferences.option.AbstractOption<Boolean>
-
- com.e1c.g5.v8.dt.formatter.ui.preferences.option.BooleanOption
-
- Direct Known Subclasses:
ShowWhitespaceCharactersOption
public class BooleanOption extends AbstractOption<Boolean>
This class represents an option that can be written to preferences and used to build UI representation of option
-
-
Field Summary
-
Fields inherited from class com.e1c.g5.v8.dt.formatter.ui.preferences.option.AbstractOption
control, value
-
-
Constructor Summary
Constructors Constructor Description BooleanOption(String preferenceKey, String presentation, IPreferenceManager manager, org.eclipse.jface.preference.IPreferenceStore store)
Creates new instance of BooleanOption
-
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
-
-
-
-
Constructor Detail
-
BooleanOption
public BooleanOption(String preferenceKey, String presentation, IPreferenceManager manager, org.eclipse.jface.preference.IPreferenceStore store)
Creates new instance of BooleanOption- 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
-
-