Package org.eclipse.compare.internal
Class ChangeCompareFilterPropertyAction
java.lang.Object
org.eclipse.core.commands.common.EventManager
org.eclipse.jface.action.AbstractAction
org.eclipse.jface.action.Action
org.eclipse.compare.internal.ChangeCompareFilterPropertyAction
- All Implemented Interfaces:
EventListener
,IAction
,IPropertyChangeListener
,DisposeListener
,SWTEventListener
public class ChangeCompareFilterPropertyAction
extends Action
implements IPropertyChangeListener, DisposeListener
Toggles the activation of a compare filter
-
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
ConstructorDescriptionChangeCompareFilterPropertyAction
(CompareFilterDescriptor compareFilterDescriptor, CompareConfiguration compareConfiguration) -
Method Summary
Modifier and TypeMethodDescriptionvoid
dispose()
void
Notification that a property has changed.void
run()
The default implementation of thisIAction
method does nothing.void
setChecked
(boolean state) Sets the checked status of this action.void
void
void
Sent when the widget is disposed.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, 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
-
Field Details
-
COMPARE_FILTERS
- See Also:
-
COMPARE_FILTER_ACTIONS
- See Also:
-
COMPARE_FILTERS_INITIALIZING
- See Also:
-
-
Constructor Details
-
ChangeCompareFilterPropertyAction
public ChangeCompareFilterPropertyAction(CompareFilterDescriptor compareFilterDescriptor, CompareConfiguration compareConfiguration)
-
-
Method Details
-
run
public void run()Description copied from class:Action
The default implementation of thisIAction
method does nothing. Subclasses should override this method if they do not need information from the triggering event, or overriderunWithEvent(Event)
if they do. -
setChecked
public void setChecked(boolean state) Description copied from interface:IAction
Sets the checked status of this action. Applicable for the stylesAS_CHECK_BOX
orAS_RADIO_BUTTON
.Fires a property change event for the
CHECKED
property if the checked status actually changes as a consequence.- Specified by:
setChecked
in interfaceIAction
- Overrides:
setChecked
in classAction
- Parameters:
state
- the new checked status- See Also:
-
setCompareConfiguration
-
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
- Parameters:
event
- the property change event object describing which property changed and how
-
dispose
public void dispose() -
widgetDisposed
Description copied from interface:DisposeListener
Sent when the widget is disposed.- Specified by:
widgetDisposed
in interfaceDisposeListener
- Parameters:
e
- an event containing information about the dispose
-
getFilterId
-
setInput
-