-
Hello,
I have made some researches and came out with this: I need to implement the |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi, this is more a Theia-related question, but I'll try to outline what is involved for this task. In Theia there is an opener service, which you can use to open widgets or editors based on opener options. You can get the opener service injected from Theia's dependency injection container and invoke it as follows (note that you can only get things injected in classes that are instantiated by the Theia dependency injection itself): import { OpenerService, open } from '@theia/core/lib/browser';
...
@inject(OpenerService) protected readonly openerService: OpenerService;
....
open(this.openerService, uri, openerOptions); The opener service will then query all open handlers that are registered via the contribution point A typical base class for a custom open handler is e.g. So in your case it depends if you want to open (a) a custom widget or (b) a widget / editor for which there already is an open handler. |
Beta Was this translation helpful? Give feedback.
Hi,
this is more a Theia-related question, but I'll try to outline what is involved for this task.
In Theia there is an opener service, which you can use to open widgets or editors based on opener options. You can get the opener service injected from Theia's dependency injection container and invoke it as follows (note that you can only get things injected in classes that are instantiated by the Theia dependency injection itself):
The opener service will then query all open handlers that are registered…