Preparing search index...

    Represents an editor workspace, managing its layout and state.

        // Workspaces.Workspace represents a workspace layout with a dock manager
    // and metadata. Access via IWorkspaceManager.all or IWorkspaceManager.create().
    // Properties: metadata (Workspaces.Metadata), dockManager (Editor.Dock.IDockManager).
    const gui = this.pluginSystem.findInterface(IGui.interfaceId) as IGui;
    const mgr = gui.workspaces;

    const workspaces: Workspaces.Workspace[] = mgr.all;
    for (const ws of workspaces) {
    console.log('Workspace:', ws.metadata.name);
    }

    this.connections.push(
    mgr.onActivated.connect((ws: Workspaces.Workspace) => {
    console.log('Activated workspace:', ws.metadata.name);
    })
    );

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    dockManager: IDockManager

    The dock manager controlling panel layout within this workspace.

    metadata: Metadata

    Metadata associated with this workspace.

    Methods

    • Beta

      Returns the name of this object's type.

      Returns string

    • Beta

      Returns true if the object is of the specified type.

      Parameters

      • type: string

      Returns boolean