-
Sorry for spamming the discussion thread. Now I am trying to setup the application with my own Ecore meta-model. Looks like the nodes are created successfully and GModel is also getting updated accordingly.
and the notation model:
But I don't see the nodes in the editor. What else is needed to visualize it? Note that my model does not have an id element. The code for
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 9 replies
-
In
and the output is
Both the .tasklist and .notation files pasted above are hand-created. |
Beta Was this translation helpful? Give feedback.
-
Added the following lines in
And now it works. Is this the correct way or is this more like a hack? |
Beta Was this translation helpful? Give feedback.
-
Hi @ipa-hsd! Basically, the logic link between the semantic and the notation element is the In our Semantic model
Notation model
To be able to apply the notation data when the GModel is created, it is necessary that the semantic element reference can be properly resolved (see also the So in your case, I assume that this reference cannot be properly resolved only by the name of the link. So I suggest you use the same approach by assigning an HTH and best wishes, |
Beta Was this translation helpful? Give feedback.
Hi @ipa-hsd!
Basically, the logic link between the semantic and the notation element is the
SemanticElementReference
.To retrieve the notation information this reference is used to retrieve the position/size information.
In our
java-emf-theia
example, an id is used as element reference, in the following example the id 61bcc27a-3e93-4847-89e4-1d2433371b4b:Semantic model
example.tasklist
:Notation model
example.notation
: