Adding newly created node to SelectionService #1038
-
Hi, while adding new node to existing GLSP Diagram, I want this new node to be shown as selected. How can I achieve this?? I tried to call the SelectAction after the node is added to the GModel Is there any other way? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
@we-wake-act21 I believe the problem is that after you create the node, the GModel will be re-created and updated and only afterwards you can actually do the select. On the server side we have an implementation of a queue where you can add actions that are applied after the next update. It is used, for instance, in the GModelCreateNodeOperationHandler. I believe you need to do something similar. |
Beta Was this translation helpful? Give feedback.
@we-wake-act21 I believe the problem is that after you create the node, the GModel will be re-created and updated and only afterwards you can actually do the select. On the server side we have an implementation of a queue where you can add actions that are applied after the next update. It is used, for instance, in the GModelCreateNodeOperationHandler. I believe you need to do something similar.