Preparing search index...

    Holds display metadata for a workspace, including its name and icon.

        // Workspaces.Metadata holds the display name and icon for a workspace.
    // Properties: name (string), icon (Editor.Icon).
    const meta = new Workspaces.Metadata();
    meta.name = 'Development';
    meta.icon = Editor.Icon.fromFile(new Editor.Path('workspace-icon.svg'));
    console.log('Metadata name:', meta.name);

    // Read metadata from existing workspaces
    const gui = this.pluginSystem.findInterface(IGui.interfaceId) as IGui;
    const mgr = gui.workspaces;
    for (const ws of mgr.all) {
    console.log('Workspace:', ws.metadata.name);
    }
    Index

    Constructors

    Properties

    Constructors

    • Beta

      Constructs a new Metadata instance for a workspace, holding its display name and icon.

      Returns Metadata

    Properties

    icon: Editor.Icon

    Icon representing the workspace in the UI.

    name: string

    Display name of the workspace.