Theia API Documentation v1.65.0
    Preparing search index...

    Offers functionality to move a widget out of the main window to a newly created window. Widgets must explicitly implement the ExtractableWidget interface to support this.

    This handler manages the opened secondary windows and sets up messaging between them and the Theia main window. In addition, it provides access to the extracted widgets and provides notifications when widgets are added to or removed from this handler.

    Index

    Constructors

    Properties

    _widgets: Widget[] = []

    List of widgets in secondary windows.

    applicationShell: ApplicationShell
    dockPanelFactory: TheiaDockPanel.Factory
    dockPanelRendererFactory: (
        document?: Document | ShadowRoot,
    ) => DockPanelRenderer
    keybindings: KeybindingRegistry
    messageService: MessageService
    onDidAddWidget: Event<[Widget, Window]> = ...

    Subscribe to get notified when a widget is added to this handler, i.e. the widget was moved to an secondary window .

    onDidAddWidgetEmitter: Emitter<[Widget, Window]> = ...
    onDidRemoveWidget: Event<[Widget, Window]> = ...

    Subscribe to get notified when a widget is removed from this handler, i.e. the widget's window was closed or the widget was disposed.

    onDidRemoveWidgetEmitter: Emitter<[Widget, Window]> = ...
    onWillAddWidget: Event<[Widget, Window]> = ...

    Subscribe to get notified when a widget is added to this handler, i.e. the widget was moved to an secondary window .

    onWillAddWidgetEmitter: Emitter<[Widget, Window]> = ...
    onWillRemoveWidget: Event<[Widget, Window]> = ...

    Subscribe to get notified when a widget is removed from this handler, i.e. the widget's window was closed or the widget was disposed.

    onWillRemoveWidgetEmitter: Emitter<[Widget, Window]> = ...
    secondaryWindowService: SecondaryWindowService

    Accessors

    Methods

    • Sets up message forwarding from the main window to secondary windows. Does nothing if this service has already been initialized.

      Parameters

      • shell: ApplicationShell

        The ApplicationShell that widgets will be moved out from.

      • dockPanelRendererFactory: (document?: Document | ShadowRoot) => DockPanelRenderer

        A factory function to create a DockPanelRenderer for use in secondary windows.

      Returns void