Protected Readonly_List of widgets in secondary windows.
ProtectedapplicationProtecteddockProtecteddockProtectedkeybindingsProtected ReadonlyloggerProtected ReadonlymessageProtected ReadonlynativeReadonlyonSubscribe to get notified when a widget is added to this handler, i.e. the widget was moved to an secondary window .
Protected ReadonlyonReadonlyonSubscribe to get notified when a widget is removed from this handler, i.e. the widget's window was closed or the widget was disposed.
Protected ReadonlyonReadonlyonSubscribe to get notified when a widget is added to this handler, i.e. the widget was moved to an secondary window .
Protected ReadonlyonReadonlyonSubscribe to get notified when a widget is removed from this handler, i.e. the widget's window was closed or the widget was disposed.
Protected ReadonlyonProtected ReadonlypendingThe secondary windows that are being restored, see setLayoutData, and have not been loaded yet. Their widgets are not tracked yet, so they are stored with the layout as they were restored.
Protected ReadonlypreferenceProtected ReadonlysecondaryProtected ReadonlywindowProtected ReadonlywindowList of widgets in secondary windows.
If the given widget is tracked by this handler, activate it and focus its secondary window.
The widget to activate specified by its id
The activated ExtractableWidget or undefined if the given widget id is unknown to this handler.
ProtectedaddOptionaloptions: AddOptionsProtectedcanOnly widgets that can be moved to secondary windows, or that are in a secondary window already, can be dropped on secondary windows.
ProtectedcollectProtectedfocusFocuses the window in which a tab has been dropped and the widget of the tab. The drag started in another window, or outside of the main area, which keeps the focus otherwise.
the data to restore the open secondary windows with their widgets, see setLayoutData
Protectedgetthe bounds of the given window, the size as expected by window.open
Sets up message forwarding from the main window to secondary windows. Does nothing if this service has already been initialized.
The ApplicationShell that widgets will be moved out from.
A factory function to create a DockPanelRenderer for use in secondary windows.
Moves all widgets of the given secondary window back to the main window, which closes the secondary window.
the window to move the widgets from
Moves the given widget from its secondary window back to the main window. The secondary window is closed once it does not contain any widgets anymore.
the widget to move back
Moves the given widget to a new window.
the widget to extract
Optionaloptions: SecondaryWindowOptions
optional options for the created window, e.g. its screen position
ProtectedonProtectedonProtectedopenOpens a secondary window and sets up its root widget once the window has been loaded.
the widget the window is created for, its label is used as the window title
the options for the created window, e.g. its bounds
adds the widgets to the root widget of the loaded window
OptionalonDidFailToLoad: (newWindow: Window) => void
called if the loaded window cannot host widgets, the window is closed then
the created window or undefined if it could not be created
ProtectedremoveRemoves the widgets that do not match the given predicate from the given layout. Empty areas are removed when the layout is restored.
ProtectedremoveProtectedrestoreIf the given widget is tracked by this handler, reveal it by focussing its secondary window.
The widget to reveal specified by its id
The revealed ExtractableWidget or undefined if the given widget id is unknown to this handler.
Opens secondary windows with the widgets of the given layout data, see getLayoutData.
The widgets are added to the main window instead if the window.restoreSecondaryWindows preference is disabled,
or if their window cannot be opened, e.g. because a browser blocks the popup.
Protectedsetup
Offers functionality to move a widget out of the main window to a newly created window. Widgets must explicitly implement the
ExtractableWidgetinterface 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.