-
I added a button to my glsp view to switch views (you already answered me) by the way, I haven't tested my work yet, so please your
and inside
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
On a first glance, your code looks reasonable, however there are a few things to consider: UI Extension EnablementUI extensions aren't enabled by default. They need to be enabled by sending a this.actionDispatcher.dispatch(
SetUIExtensionVisibilityAction.create({ extensionId: ButtonOverlay.ID, visible: true })
); If you want to enable UI extensions on open in the context of a Theia editor, you typically do that in your custom subclass of the In order to register your custom diagram manager, you typically overwrite Dependency injection modules of GLSP and TheiaLooking at your bind(ButtonOverlay).toSelf().inSingletonScope();
bind(TYPES.IUIExtension).toService(ButtonOverlay);
bind(OpenerService).to(ButtonOverlay).inSingletonScope(); You create
|
Beta Was this translation helpful? Give feedback.
-
Hello @planger, thank you for your response.
I also corrected the binding and it works fine. And for the moment I will try to do the opposite way from the table view to the glsp one, can you give me some hints depending on my functional code. |
Beta Was this translation helpful? Give feedback.
On a first glance, your code looks reasonable, however there are a few things to consider:
UI Extension Enablement
UI extensions aren't enabled by default. They need to be enabled by sending a
SetUIExtensionVisibilityAction
with your UI extension IDIf you want to enable UI extensions on open in the context of a Theia editor, you typically do that in your custom subclass of the
GLSPDiagramManager
by overriding and extending thedoOpen
method. Please see the default implementation ofdoOpen
to see how it e.g. dispatches the actions it computes for thenavigations
.Th…