|
Re: Creation of element based edge [message #1429498 is a reply to message #1429449] |
Tue, 23 September 2014 06:01   |
Eclipse User |
|
|
|
Hi Miguel,
I don't know your metamodel, but if you want edges for AssocationClass
only if this last is referenced, you can have a "Semantic Candidates
Expression" which filter unwanted AssociationClass or yet the
"Precondition" available in the Advanced tab.
Best Regards.
Le 23/09/2014 10:42, Miguel Dalcampo a écrit :
> Hello,
>
> This is my second topic in this forum and I hope that the answers to my
> problem will be as much helpful as the first time :p
> I'm trying to create a Diagram representation, containing Containers and
> Edges.
> All the containers and the contained bordered nodes are well displayed,
> but not the edges which are too numerous :x
>
> As my metamodel use an ecore association class, I assumed to use an
> Element based edge.
> Sirius creates too much edges between the nodes!!
>
> AssociationClass---------->Source
> |
> |_______________> Target
>
> The problem is that several instances of the AssociationClass are
> referencing the same source AND target, but only one instance of
> AssociationClass is referenced.
> That's why I've got multiple edges!
>
> What should I do to limit the number of edges?
>
> I'm sorry about the confused explanion, and I'll try to extract an
> example from my project to make it clearer :roll:
>
> Regards,
> Miguel
--
Esteban Dugueperoux - Obeo
Need professional services for Sirius?
http://www.obeodesigner.com/sirius
|
|
|
Re: Creation of element based edge [message #1429559 is a reply to message #1429498] |
Tue, 23 September 2014 07:57  |
Eclipse User |
|
|
|
Hi Esteban,
That's probably the key of the problem.
I've got a class 'A' that reference the AssociationClass 'B'.
The associationClass 'AssoClass' reference two class 'B' and 'C'.
A
|
|
v
AssoClass-------->B
|
|
v
C
There are two types of containers:
- the first one 'C1' is issued from 'C'.
- the second one 'C2' is issued from 'A' and contains nodes with information from 'C'. I add also nodes which displays the address of the referenced AssociationClass elements.
In the label the edge I display the adress of the AssociationClass element.
The edge are created even if the AssociationClass element is not in 'C2'!
The addresses does not match, but the edges are created.
Miguel
|
|
|
Powered by
FUDForum. Page generated in 0.04732 seconds