Readonly
idReadonly
labelProtected
Readonly
labelProtected
Readonly
locationProtected
Readonly
miniReadonly
onEmit when a new widget is created.
Protected
Readonly
onProtected
Readonly
openerProtected
Readonly
quickProtected
Readonly
shellProtected
Readonly
supportedInstead of going to the backend with each file URI to ask whether it can handle the current file or not,
we have this map of extension and priority pairs that we populate at application startup.
The real advantage of this approach is the following: Lumino cannot run async code when invoking isEnabled
/isVisible
for the command handlers
so the menu item would be always visible for the user even if the file type cannot be handled eventually.
Hopefully, we could get rid of this hack once we have migrated the existing Lumino code to React.
Protected
Readonly
widgetStatic
PREVIEW_Retrieves all open widgets that have been opened by this handler.
all open widgets for this open handler.
Test whether this handler can open the given URI for given options. Return a nonzero number if this handler can open; otherwise it cannot. Never reject.
A returned value indicating a priority of this handler.
Optional
options: MiniBrowserOpenerOptionsProtected
canOptional
widget: WidgetCloses all widgets that have been opened by this open handler.
Optional
options: ApplicationShell.CloseOptionsthe close options that should be applied to all widgets.
a promise of all closed widgets that resolves after they have been closed.
Protected
createOptional
options: WidgetOpenerOptionsProtected
defaultProtected
doOptional
options: WidgetOpenerOptionsTries to get an existing widget for the given uri.
the uri of the widget.
a promise that resolves to the existing widget or undefined
if no widget for the given uri exists.
Protected
getReturn an existing widget for the given uri or creates a new one.
It does not open a widget, use WidgetOpenHandler#open instead.
uri of the widget.
a promise of the existing or newly created widget.
Protected
getOptional
options: MiniBrowserOpenerOptionsProtected
getProtected
getProtected
getOptional
options: WidgetOpenerOptionsProtected
getOptional
widget: WidgetProtected
initCalled when the application is started. The application shell is not attached yet when this method runs. Should return a promise if it runs asynchronously.
Open a widget for the given uri and options. Reject if the given options are not widget options or a widget cannot be opened.
the uri of the resource that should be opened.
Optional
options: MiniBrowserOpenerOptionsthe widget opener options.
promise of the widget that resolves when the widget has been opened.
Protected
openOptional
ref: WidgetProtected
openOptional
arg: stringProtected
optionsOptional
uri: URIOptional
options: MiniBrowserOpenerOptionsProtected
previewOptional
widget: WidgetRegisters toolbar items.
the tabbar toolbar registry.
Protected
resetProtected
serializeProtected
tryOptional
options: WidgetOpenerOptions
The command contribution should be implemented to register custom commands and handler.