Skip to content
Discussion options

You must be logged in to vote

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:

...
  <tasks id="61bcc27a-3e93-4847-89e4-1d2433371b4b" name="NewTask0"/>
...

Notation model example.notation:

...
  <elements xsi:type="notation:Shape">
    <semanticElement elementId="61bcc27a-3e93-4847-89e4-1d2433371b4b"/>
    <position x="382.0" y="101.0"/>
    <size width="67.0" height="56.0"/>
  </e…

Replies: 3 comments 9 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@hsd-dev
Comment options

Comment options

You must be logged in to vote
8 replies
@ndoschek
Comment options

ndoschek Jun 3, 2022
Collaborator

@hsd-dev
Comment options

@hsd-dev
Comment options

@martin-fleck-at
Comment options

@hsd-dev
Comment options

Answer selected by hsd-dev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants