Pointer to main editor object used to initialize
Unique id of the command
Whether the command is in memory.
Human readable name of the command
Type of the command
Whether the command is updatable.
If the command is NOT updatable, it's added as a new part of the history
Execute the command, if possible.
If the command is executed successfully, return void
. Otherwise, throw an error.
Creates a new instance of this class based on the given JSON.
E2E test method.
This method should return true
if the test passes, and false
if it fails.
Check the method itself for more information.
Returns a JSON representation of this class.
Undo the command.
If the command is executed successfully, return void
. Otherwise, throw an error.
Represents an empty command that extends the functionality of AbstractCommand. This class can be used as a placeholder or base class for other commands.
It can also be used for serialization and deserialization of commands. Note that the constructor of this class does not take any arguments.
An empty command should be can always be created from thin air.