Table of Contents

Class ViewEditorCommandHandler

Namespace
Loehnert.Lisrt.Scripting.Editor.Commands
Assembly
Loehnert.Lisrt.Scripting.dll

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 IEditorService

Editor service.

shell IShell

The 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 Command

The executing command.

Returns

Task

The running task.

Update(Command)

Updates the command.

public override void Update(Command command)

Parameters

command Command

The executing command.