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

    Service for opening new secondary windows to contain widgets extracted from the application shell.

    The functionality provided by this service and its implementation is still under development. Use with caution.

    Hierarchy (View Summary)

    Implements

    Index
    beforeWidgetRestore: Event<[Widget, Window]> = ...
    beforeWidgetRestoreEmitter: Emitter<[Widget, Window]> = ...
    logger: ILogger
    onWindowClosed: Event<Window> = ...
    onWindowClosedEmitter: Emitter<Window> = ...
    onWindowLoaded: Event<Window> = ...

    Emitted once a secondary window's final document has finished loading. Listeners can safely modify the window's document, unlike with onWindowOpened: at that point the window still shows the initial about:blank document, and anything added to it is discarded when the final document replaces it.

    onWindowLoadedEmitter: Emitter<Window> = ...
    onWindowOpened: Event<Window> = ...
    onWindowOpenedEmitter: Emitter<Window> = ...
    preferenceService: PreferenceService
    prefix: number = ...

    Randomized prefix to be included in opened windows' ids. This avoids conflicts when creating sub-windows from multiple theia instances (e.g. by opening Theia multiple times in the same browser)

    saveResourceService: SaveableService
    secondaryWindows: Window[] = []
    shuttingDown: boolean = false

    Whether the main window is shutting down, which closes all secondary windows. Such a close is not handled like a close by the user: the widgets stay in their windows, so that the windows are stored with the layout and restored on the next start.

    windowFocusService: WindowFocusService
    windowService: WindowService
    SECONDARY_WINDOW_URL: string = 'secondary-window.html'

    secondary-window.html is part of Theia's generated code. It is generated by dev-packages/application-manager/src/generator/frontend-generator.ts