Class orion.commands.CommandInvocation
Carries information about a command invocation.
Defined in: </shared/eclipse/e4/orion/I201404012230/bundles/org.eclipse.orion.client.ui/web/orion/commands.js>.
Constructor Attributes | Constructor Name and Description |
---|---|
orion.commands.CommandInvocation(handler, items, userData, command, commandRegistry)
CommandInvocation is a data structure that carries all relevant information about a command invocation.
|
Field Attributes | Field Name and Description |
---|---|
Method Attributes | Method Name and Description |
---|---|
Returns whether this command invocation can collect parameters.
|
|
makeCopy(parameters)
Makes and returns a (shallow) copy of this command invocation.
|
Note: When retrieving parameters from a command invocation, clients should always use #parameters rather than obtaining the parameter object originally specified for the command (using #command.parameters). This ensures that the parameter values for a unique invocation are used vs. any default parameters that may have been specified originally. Similarly, if a client wishes to store data that will preserved across multiple invocations of a command, that data can be stored in the original parameters description and a reference maintained by the client.
- Parameters:
- {Object} handler
- {Array} items
- {Object} userData Optional
- {orion.commands.Command} command
- {orion.commandregistry.CommandRegistry} commandRegistry Optional
- Returns:
- {Boolean} whether parameters can be collected
- Parameters:
- {orion.commands.ParametersDescription} parameters
- A description of parameters to be used in the copy. Optional. If not specified, then the existing parameters should be copied.