|
Re: Two different representations of the same relationship [message #1776512 is a reply to message #1776478] |
Fri, 17 November 2017 08:17 |
graph researcher Messages: 8 Registered: March 2017 |
Junior Member |
|
|
Some illustrative files:
- eCore meta-model (must remain unchanged) [naryonlyMM.png]
- Sirius (Obeo Designer Community 10.0) model diagram [naryonlyM.png]
- modeler design specification file [arityonly.odesign]
are attached now to describe the problem I have better.
I would like to decide if I join two Nodes with grey or with blue edges representing the meta-model Arc class.
Please, do not ask me to change the meta-model. It should be enough to query the meta-model with AQL to refer to the right meta-model elements required by Sirius modeler. Which one, how and how to block the relationship duplication (grey+blue) on the diagram?
[Updated on: Fri, 17 November 2017 09:13] Report message to a moderator
|
|
|
Re: Two different representations of the same relationship [message #1776522 is a reply to message #1776512] |
Fri, 17 November 2017 09:26 |
|
Hello,
Yes on a representation description, you can add as many mapping representing the same semantic elements as you need.
If you want to use different tools to select which mapping(s) should be use to represent an element then you will need to set the representation description to "Not Synchronized" (see the Synchronization part in https://www.eclipse.org/sirius/doc/specifier/diagrams/Diagrams.html#graphical_elements). This mean that you control which semantic element should be represented and that your creation tools should include "Create View" model operations in order to display the element added in your semantic model. In the same spirit, your delete tool should only process a "Delete View" model operation if you just want to delete the graphical representation of an element. Note that in the contextual menu, you have "delete from diagram" and "delete from model" actions by default.
I think you should have a look to EcoreTools and UML Designer viewpoint specification models, you should find some examples that will help you.
Regards,
Steve
Steve Monnier - Obeo Canada
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
|
|
|
|
Powered by
FUDForum. Page generated in 0.02920 seconds