Actions may need to create a memento before their first execution.
This is the goal of the operation that should be overridden.
This operator is called a single time before the first execution of the command.
Returns void
done
done(): void
Marks the command as "done" and sends it to the command registry.
Returns void
execute
execute(): boolean | Promise<boolean>
Executes (if possible) the commands.
Returns boolean | Promise<boolean>
True: the command has been executed.
Protectedexecution
execution(): void
This method contains the statements to execute the command.
This method is automatically called by 'execute' and must not be called explicitly.
Returns void
flush
flush(): void
Flushes the UI command.
The command must not be used after that.
An Undo command.