How to let operation contains selected node id #1425
Replies: 2 comments 2 replies
-
I want to make an update about the situation. I've come up with some workaround to make it able to add through the menu context, which is to right-click the node, because I can send the elementId to backend within actions. But I don't think it's a proper way to do this and the
I guess the problems lies on the
When I use my own defined
Can you help me with the correct practice to make the add new branch node work for this PaletteItem item? |
Beta Was this translation helpful? Give feedback.
-
Hi @YourHarbour, thanks for checking out GLSP 😄
|
Beta Was this translation helpful? Give feedback.
-
Hi everyone,
I'am new to GLSP and currently have a problem on Java-EMF-theia template.
My ecore model contains an actioncardlist, actioncards and branches, actioncards are children of actioncardlist, branches are children of each actioncard.
I've able to add actioncard to actioncardlist in model instance, but struggle on how to let new branches added to the user selected actioncard.
In my CreateBranchNodeOperationHandle, the
operation.getContainerId()
is always return null, so I wonder if I need to make my own operation handler to support this.Can anyone suggest what would be the best practice for this?
I tried to following the document about operation handler but cant really get it and how to use it with the java server.
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions