Protected
_cachedProtected
Readonly
factoryProtected
Readonly
loggerReadonly
onProtected
Readonly
onReadonly
onAn event can be used to participate in the widget creation. Listeners may not dispose the given widget.
Protected
Readonly
onProtected
Readonly
pendingProtected
Readonly
widgetsProtected
factoriesProtected
doOptional
options: anyProtected
doFinds a widget that matches the given test predicate.
The widget factory id.
The test predicate.
Optional
options: anya promise resolving to the widget if available, else undefined
.
Protected
fromConvert the key into the widget construction options object.
the key.
the widget construction options object.
Get the widget construction options.
the widget.
the widget construction options if the widget was created through the manager, else undefined
.
Creates a new widget or returns the existing widget for the given description.
the widget factory id.
Optional
options: anythe widget factory specific information.
a promise resolving to the widget.
Get the widget for the given description.
The widget factory id.
Optional
options: anyThe widget factory specific information.
a promise resolving to the widget if available, else undefined
.
Protected
testProtected
toConvert the widget construction options to string.
the widget construction options.
the widget construction options represented as a string.
Try to get the existing widget for the given description.
The widget factory id.
Optional
options: anyThe widget factory specific information.
A promise that resolves to the widget, if any exists. The promise may be pending, so be cautious when assuming that it will not reject.
Try to get the existing widget for the given description.
The widget factory id.
Optional
options: anyThe widget factory specific information.
the widget if available, else undefined
.
The widget is 'available' if it has been created with the same factoryId and options by the WidgetManager.
If the widget's creation is asynchronous, it is only available when the associated Promise
is resolved.
The WidgetManager is the common component responsible for creating and managing widgets. Additional widget factories can be registered by using the WidgetFactory contribution point. To identify a widget, created by a factory, the factory id and the creation options are used. This key is commonly referred to as
description
of the widget.