Package org.eclipse.core.commands
Class HandlerEvent
java.lang.Object
org.eclipse.core.commands.common.AbstractBitSetEvent
org.eclipse.core.commands.HandlerEvent
An instance of this class describes changes to an instance of
IHandler
.
This class is not intended to be extended by clients.
- Since:
- 3.1
- See Also:
-
Field Summary
Fields inherited from class org.eclipse.core.commands.common.AbstractBitSetEvent
changedValues
-
Constructor Summary
ConstructorDescriptionHandlerEvent
(IHandler handler, boolean enabledChanged, boolean handledChanged) Creates a new instance of this class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the instance of the interface that changed.boolean
Returns whether or not the enabled property changed.boolean
Returns whether or not the handled property changed.
-
Constructor Details
-
HandlerEvent
Creates a new instance of this class.- Parameters:
handler
- the instance of the interface that changed; must not benull
.enabledChanged
- Whether the enabled state of the handler has changed.handledChanged
- Whether the handled state of the handler has changed.
-
-
Method Details
-
getHandler
Returns the instance of the interface that changed.- Returns:
- the instance of the interface that changed. Guaranteed not to be
null
.
-
isEnabledChanged
public boolean isEnabledChanged()Returns whether or not the enabled property changed.- Returns:
true
, iff the enabled property changed.
-
isHandledChanged
public boolean isHandledChanged()Returns whether or not the handled property changed.- Returns:
true
, iff the handled property changed.
-