Two different representations of the same relationship [message #1776478] |
Thu, 16 November 2017 13:56  |
Eclipse User |
|
|
|
Is it possible in Sirius 5.0 to have two different representations of the same relationship at the same time? The relationship has it's own class in the eCore meta-model. I am asking this question, because for each pair of node classes in the model diagram both representations are displayed. When I delete one of them on the model diagram for a particular nodes pair the second is also deleted from the diagram. What should I do to separate them and to achieve the following goals:
- have two different representations of the same relationship having one meta-model class
- have two different tools in tool palette one for each relationship representation
- associate information about the tool used for creating an association on the diagram with the association on the diagram (for correct presentation and for diagram persistence provisioning)
My case-study is dedicated to N-ary associations. And I have the following tools:
a) createNode [a UML class rectangle]
b) createArc [a UML N-ary relationship diamond]
c) createNode2Arc [an edge from a Node to an Arc]
d) createArc2Node [an edge from an Arc to a Node]
e) createNode2Node [an edge from a Node to a Node]
And I would like to be able to draw one of two variants only of the same binary case of the N-ary relationship for a particular pair of Nodes:
- c+d (displayed as an edge crossing the diamond)
- e (displayed just as an edge)
I may provide more detailed information if needed.
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03238 seconds