sej
    Preparing search index...

    Class AbstractCommandAbstract

    Abstract class for all commands.

    Hierarchy (View Summary)

    Implements

    Index

    Constructors

    Properties

    editor: Editor

    Pointer to main editor object used to initialize

    id: number

    Unique id of the command

    inMemory: boolean

    Whether the command is in memory.

    json: undefined | CommandJSON
    name: string

    Human readable name of the command

    type: string

    Type of the command

    updatable: boolean

    Whether the command is updatable.

    If the command is NOT updatable, it's added as a new part of the history

    Methods

    • Execute the command, if possible.

      Returns void

      If the command is executed successfully, return void. Otherwise, throw an error.

    • 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 boolean

    • Undo the command.

      Returns void

      If the command is executed successfully, return void. Otherwise, throw an error.