Preparing search index...

    Interface representing a plugin.

        // A CoreService subclass is itself an IPlugin — `this` is the plugin
    // instance. Use `this.pluginSystem` to resolve interfaces declared in
    // the descriptor's `dependencies` array.
    const model = this.pluginSystem.findInterface(Editor.Model.IModel) as Editor.Model.IModel;

    // React to the user switching projects (open/new) by registering a
    // handler on onProjectChanged.
    const conn = model.onProjectChanged.connect(() => {
    console.log(`Plugin ${this.id}: switched to a new project`);
    });
    this.connections.push(conn);

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    Methods

    Constructors

    Properties

    id: string

    Methods

    • Returns the name of this object's type.

      Returns string

    • Returns true if the object is of the specified type.

      Parameters

      • type: string

      Returns boolean