Package org.eclipse.compare.internal
Class ShowWhitespaceAction
java.lang.Object
org.eclipse.core.commands.common.EventManager
org.eclipse.jface.action.AbstractAction
org.eclipse.jface.action.Action
org.eclipse.compare.internal.TextEditorPropertyAction
org.eclipse.compare.internal.ShowWhitespaceAction
- All Implemented Interfaces:
EventListener
,IAction
,IPropertyChangeListener
-
Field Summary
Fields inherited from interface org.eclipse.jface.action.IAction
AS_CHECK_BOX, AS_DROP_DOWN_MENU, AS_PUSH_BUTTON, AS_RADIO_BUTTON, AS_UNSPECIFIED, CHECKED, DESCRIPTION, ENABLED, HANDLED, IMAGE, RESULT, TEXT, TOOL_TIP_TEXT
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Notification that a property has changed.protected void
protected boolean
toggleState
(boolean checked) Methods inherited from class org.eclipse.compare.internal.TextEditorPropertyAction
dispose, getPreferenceKey, getViewers, run
Methods inherited from class org.eclipse.jface.action.Action
convertAccelerator, convertAccelerator, findKeyCode, findKeyString, findModifier, findModifierString, getAccelerator, getActionDefinitionId, getDescription, getDisabledImageDescriptor, getHelpListener, getHoverImageDescriptor, getId, getImageDescriptor, getMenuCreator, getStyle, getText, getToolTipText, isChecked, isEnabled, isHandled, notifyResult, removeAcceleratorText, removeMnemonics, runWithEvent, setAccelerator, setActionDefinitionId, setChecked, setDescription, setDisabledImageDescriptor, setEnabled, setHelpListener, setHoverImageDescriptor, setId, setImageDescriptor, setMenuCreator, setText, setToolTipText
Methods inherited from class org.eclipse.jface.action.AbstractAction
addPropertyChangeListener, firePropertyChange, firePropertyChange, removePropertyChangeListener
Methods inherited from class org.eclipse.core.commands.common.EventManager
addListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObject
-
Constructor Details
-
ShowWhitespaceAction
-
-
Method Details
-
synchronizeWithPreference
protected void synchronizeWithPreference()- Overrides:
synchronizeWithPreference
in classTextEditorPropertyAction
-
propertyChange
Description copied from interface:IPropertyChangeListener
Notification that a property has changed.This method gets called when the observed object fires a property change event.
- Specified by:
propertyChange
in interfaceIPropertyChangeListener
- Overrides:
propertyChange
in classTextEditorPropertyAction
- Parameters:
event
- the property change event object describing which property changed and how
-
toggleState
protected boolean toggleState(boolean checked) - Overrides:
toggleState
in classTextEditorPropertyAction
- Parameters:
checked
- new state- Returns:
true
if state has been changed, toggle has been successful
-