import { assert } from "../../src/core/assert.js";
import { BaseProcess } from "../../src/core/process/BaseProcess.js";


class EditorProcess extends BaseProcess {

    /**
     *
     * @type {string}
     */
    name = "unnamed";
    /**
     *
     * @type {Editor|null}
     */
    editor = null;

    /**
     *
     * @param {Editor} editor
     */
    initialize(editor) {
        assert.defined(editor, 'editor');

        this.editor = editor;

        super.initialize();
    }
}

export { EditorProcess };
