Class: ExecuteCommand
actions/ExecuteCommand.ExecuteCommand
This action can be used to execute a built-in ide command on one or more
targets by first setting the selection to those targets and then running the
action, restoring the selections if
restoreSelection is true. Internally, most
of the heavy lifting is done by CallbackAction.
Implements
Constructors
constructor
• new ExecuteCommand(graph)
Parameters
| Name | Type |
|---|---|
graph | Graph |
Defined in
actions/ExecuteCommand.ts:24
Properties
callbackAction
• Private callbackAction: CallbackAction
Defined in
actions/ExecuteCommand.ts:23
Methods
run
▸ run(targets, commandId, __namedParameters?): Promise<ActionReturnValue>
Parameters
| Name | Type |
|---|---|
targets | [Target[]] |
commandId | string |
__namedParameters | Options |
Returns
Promise<ActionReturnValue>
Implementation of
Defined in
actions/ExecuteCommand.ts:29