Class ViewEditorCommandHandler
Command handler for the ViewEditorCommandDefinition.
[CommandHandler]
public class ViewEditorCommandHandler : ScriptCommandHandlerBase<ViewEditorCommandDefinition>, ICommandHandler<ViewEditorCommandDefinition>, ICommandHandler
- Inheritance
-
ViewEditorCommandHandler
- Implements
- Inherited Members
Constructors
ViewEditorCommandHandler(IEditorService, IShell)
Initializes a new instance of the ViewEditorCommandHandler class.
[ImportingConstructor]
public ViewEditorCommandHandler(IEditorService editorService, IShell shell)
Parameters
editorService
IEditorServiceEditor service.
shell
IShellThe main shell.
Exceptions
- ArgumentNullException
Thrown when an argument is null.
Methods
Run(Command)
Runs the command and opens the editor.
public override Task Run(Command command)
Parameters
command
CommandThe executing command.
Returns
- Task
The running task.
Update(Command)
Updates the command.
public override void Update(Command command)
Parameters
command
CommandThe executing command.