A piece of state storing a
If this state is registered using
IMenuStateIds.STYLE, then it will
control the presentation of the command if displayed in the menus, tool bars
or status line.
Clients may instantiate this class, but must not extend.
Constructor SummaryConstructorDescriptionConstructs a new
Method SummaryModifier and TypeMethodDescription
final voidLoads this state from the preference store, given the location at which to look.
final voidSaves this state to the preference store, given the location at which to write.
voidSets the value for this state object.
Methods inherited from class org.eclipse.jface.commands.PersistentState
Methods inherited from class org.eclipse.core.commands.State
addListener, dispose, fireStateChanged, getId, getValue, removeListener, setId
Methods inherited from class org.eclipse.core.commands.common.EventManager
addListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObject
ToggleStatepublic ToggleState()Constructs a new
ToggleState. By default, the toggle is off (e.g.,
loadDescription copied from class:
PersistentStateLoads this state from the preference store, given the location at which to look. This method must be symmetric with a call to
saveDescription copied from class:
PersistentStateSaves this state to the preference store, given the location at which to write. This method must be symmetric with a call to
setValuepublic void setValue
(Object value)Description copied from class:
StateSets the value for this state object.