Unable to align nodes from notation model #1422
Unanswered
YourHarbour
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi everyone,
I'm new to glsp and met some questions during the trial.
I've tried replacing the 🖥️ Java ● 🗂️ EMF ● 🖼️ Theia template with my ecore model, and it's able to add nodes to the canvas.
However, the canvas can't remember the node's position. Each time I reopen the page or add a node to the canvas, the node will be placed at 0,0. Shown as below:
Here is my CreateActionCardNodeHandler code, I use the same way as the example task node handler to give it the id:
In my example.tasklist file, the node is added successfully with ID:
However, the notation file didn't contain this id (the first two elements are manually added):
I'm try to follow the example TaskNodeHandler to create my own nodes handler, but not sure whats going on here. And it seems that's when the first time the GmodelFactory was called to build nodes, the
notationModel.getSemanticElement().getResolvedSemanticElement()
method returns null.Could you help me with this?
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions