Class DeleteProjectItemCommandHandler
Command handler for the DeleteProjectItemCommandDefinition.
[CommandHandler]
public class DeleteProjectItemCommandHandler : ScriptCommandHandlerBase<DeleteProjectItemCommandDefinition>, ICommandHandler<DeleteProjectItemCommandDefinition>, ICommandHandler
- Inheritance
-
DeleteProjectItemCommandHandler
- Implements
- Inherited Members
Constructors
DeleteProjectItemCommandHandler(IShell, IEditorService)
Initializes a new instance of the DeleteProjectItemCommandHandler class.
[ImportingConstructor]
public DeleteProjectItemCommandHandler(IShell shell, IEditorService editorService)
Parameters
shell
IShellGemini shell.
editorService
IEditorServiceEditor service.
Methods
Run(Command)
Calls the Delete() and deletes the selected item from the project.
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.