Hints on how to send/receive GLSP Actions and RequestActions from Theia Widget to manipulate diagram on the server. #1352
Replies: 1 comment
-
Hi @ahm-aigilit, I hope I get your use case right but it seems that you want to send actions from a particular diagram from outside the diagram, is that right? Currently there is no generic mechanism to send an action to an arbitrary diagram widget since the whole GLSP diagram widget is encapsulated in it's own Inversify container. However, you can retrieve the diagram widget from Theia (either by going through all widgets and finding the one that you need or if it is the active one you could use the |
Beta Was this translation helpful? Give feedback.
-
Hey, I am fairly new to GLSP and Theia and building a prototype for a graphical model editor.
Now I would like to interact with the diagram from a custom Theia ReactWidget.
Do you have any hints or examples on how I would implement sending custom Actions over the existing Websocket connection.
I would like to include the opened diagram file URI and also (if any) a potentially selected node ID.
The diagram might get changed on the server and needs to be updated on the client. This is part of the GLSP protocol, so I would like to use that.
I have the custom widget already integrated in Theia. Now I am a bit lost on how to get hold on the GLSP specifics. Are there any examples out there I can look at?
Appreciate your time for some hints.
Beta Was this translation helpful? Give feedback.
All reactions