Preparing search index...

    Interface for text editor management.

        // IEditorsManager provides openEditors(entity) to open editors for an entity.
    const em = this.pluginSystem.findInterface(IEditorsManager.interfaceId) as IEditorsManager;
    if (Editor.isNull(em)) {
    console.log('IEditorsManager not available');
    return;
    }

    const model = this.pluginSystem.findInterface(
    Editor.Model.IModel.interfaceId
    ) as Editor.Model.IModel;
    if (Editor.isNull(model)) {
    console.log('IModel not available');
    return;
    }

    const scene = model.project.scene;
    const roots = scene.rootSceneObjects;
    if (roots.length > 0) {
    // Open editors for the first root scene object
    em.openEditors(roots[0]);
    console.log('Opened editors for:', roots[0].name);
    }

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    interfaceId: InterfaceId

    Interface identifier for retrieving this plugin component.

    Methods

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

      Parameters

      • type: string

      Returns boolean

    • Open editors for the specified entity with optional plugin-specific configurations.

      Parameters

      • entity: Entity
      • OptionaleditorPluginIds: any

      Returns void