Options
All
  • Public
  • Public/Protected
  • All
Menu

Class SecondaryWindowHandler

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.

experimental

The functionality provided by this handler is experimental and has known issues in Electron apps.

Hierarchy

  • SecondaryWindowHandler

Index

Constructors

Properties

_widgets: ExtractableWidget[] = []

List of widgets in secondary windows.

applicationShell: ApplicationShell
colorAppContribution: ColorApplicationContribution
keybindings: KeybindingRegistry
messageService: MessageService
onDidAddWidget: Event<Widget> = ...

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> = ...
onDidRemoveWidget: Event<Widget> = ...

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> = ...
secondaryWindowService: SecondaryWindowService
stylingService: StylingService

Accessors

  • get widgets(): readonly Widget[]

Methods