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

    Generic base class for OpenHandlers that are opening a widget for a given URI.

    Type Parameters

    Hierarchy (View Summary)

    Implements

    Index

    Constructors

    Properties

    id: string

    The widget open handler id.

    • A widget factory for this id should be registered.
    • Subclasses should not implement WidgetFactory to avoid exposing capabilities to create a widget outside of WidgetManager.
    onCreated: Event<W> = ...

    Emit when a new widget is created.

    onCreatedEmitter: Emitter<W> = ...
    widgetManager: WidgetManager

    Accessors

    Methods

    • Tries to get an existing widget for the given uri.

      Parameters

      • uri: URI

        the uri of the widget.

      Returns Promise<undefined | W>

      a promise that resolves to the existing widget or undefined if no widget for the given uri exists.