public final class CommandEvent extends AbstractNamedHandleEvent
Command
.
This class is not intended to be extended by clients.
ICommandListener.commandChanged(CommandEvent)
CHANGED_DESCRIPTION, CHANGED_NAME, LAST_USED_BIT
CHANGED_DEFINED, LAST_BIT_USED_ABSTRACT_HANDLE
changedValues
Constructor and Description |
---|
CommandEvent(Command command,
boolean categoryChanged,
boolean definedChanged,
boolean descriptionChanged,
boolean handledChanged,
boolean nameChanged,
boolean parametersChanged)
Creates a new instance of this class.
|
CommandEvent(Command command,
boolean categoryChanged,
boolean definedChanged,
boolean descriptionChanged,
boolean handledChanged,
boolean nameChanged,
boolean parametersChanged,
boolean returnTypeChanged)
Creates a new instance of this class.
|
CommandEvent(Command command,
boolean categoryChanged,
boolean definedChanged,
boolean descriptionChanged,
boolean handledChanged,
boolean nameChanged,
boolean parametersChanged,
boolean returnTypeChanged,
boolean helpContextIdChanged)
Creates a new instance of this class.
|
CommandEvent(Command command,
boolean categoryChanged,
boolean definedChanged,
boolean descriptionChanged,
boolean handledChanged,
boolean nameChanged,
boolean parametersChanged,
boolean returnTypeChanged,
boolean helpContextIdChanged,
boolean enabledChanged)
Creates a new instance of this class.
|
Modifier and Type | Method and Description |
---|---|
Command |
getCommand()
Returns the instance of the interface that changed.
|
boolean |
isCategoryChanged()
Returns whether or not the category property changed.
|
boolean |
isEnabledChanged()
Return whether the enable property changed.
|
boolean |
isHandledChanged()
Returns whether or not the handled property changed.
|
boolean |
isHelpContextIdChanged()
Returns whether or not the help context identifier changed.
|
boolean |
isParametersChanged()
Returns whether or not the parameters have changed.
|
boolean |
isReturnTypeChanged()
Returns whether or not the return type property changed.
|
isDescriptionChanged, isNameChanged
isDefinedChanged
public CommandEvent(Command command, boolean categoryChanged, boolean definedChanged, boolean descriptionChanged, boolean handledChanged, boolean nameChanged, boolean parametersChanged)
command
- the instance of the interface that changed.categoryChanged
- true
, iff the category property changed.definedChanged
- true
, iff the defined property changed.descriptionChanged
- true
, iff the description property changed.handledChanged
- true
, iff the handled property changed.nameChanged
- true
, iff the name property changed.parametersChanged
- true
if the parameters have changed;
false
otherwise.public CommandEvent(Command command, boolean categoryChanged, boolean definedChanged, boolean descriptionChanged, boolean handledChanged, boolean nameChanged, boolean parametersChanged, boolean returnTypeChanged)
command
- the instance of the interface that changed.categoryChanged
- true
, iff the category property changed.definedChanged
- true
, iff the defined property changed.descriptionChanged
- true
, iff the description property changed.handledChanged
- true
, iff the handled property changed.nameChanged
- true
, iff the name property changed.parametersChanged
- true
if the parameters have changed;
false
otherwise.returnTypeChanged
- true
iff the return type property changed;
false
otherwise.public CommandEvent(Command command, boolean categoryChanged, boolean definedChanged, boolean descriptionChanged, boolean handledChanged, boolean nameChanged, boolean parametersChanged, boolean returnTypeChanged, boolean helpContextIdChanged)
command
- the instance of the interface that changed.categoryChanged
- true
, iff the category property changed.definedChanged
- true
, iff the defined property changed.descriptionChanged
- true
, iff the description property changed.handledChanged
- true
, iff the handled property changed.nameChanged
- true
, iff the name property changed.parametersChanged
- true
if the parameters have changed;
false
otherwise.returnTypeChanged
- true
iff the return type property changed;
false
otherwise.helpContextIdChanged
- true
iff the help context identifier changed;
false
otherwise.public CommandEvent(Command command, boolean categoryChanged, boolean definedChanged, boolean descriptionChanged, boolean handledChanged, boolean nameChanged, boolean parametersChanged, boolean returnTypeChanged, boolean helpContextIdChanged, boolean enabledChanged)
command
- the instance of the interface that changed.categoryChanged
- true
, iff the category property changed.definedChanged
- true
, iff the defined property changed.descriptionChanged
- true
, iff the description property changed.handledChanged
- true
, iff the handled property changed.nameChanged
- true
, iff the name property changed.parametersChanged
- true
if the parameters have changed;
false
otherwise.returnTypeChanged
- true
iff the return type property changed;
false
otherwise.helpContextIdChanged
- true
iff the help context identifier changed;
false
otherwise.enabledChanged
- true
iff the comand enablement changed;
false
otherwise.public final Command getCommand()
null
.public final boolean isCategoryChanged()
true
, iff the category property changed.public final boolean isHandledChanged()
true
, iff the handled property changed.public final boolean isHelpContextIdChanged()
true
, iff the help context identifier changed.public final boolean isParametersChanged()
true
, iff the parameters property changed.public final boolean isReturnTypeChanged()
true
, iff the return type property changed.public final boolean isEnabledChanged()
true
iff the comand enablement changed
Copyright (c) 2000, 2015 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.