Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community Forumslink from derived class
https://www.eclipse.org/forums/index.php/mv/msg/70398/220292/#msg_220292
I want to create a two links. One is from class A and the other link shall be from class B. And
class be is derived from class A. I need to do so because the shape of the two connections shall be
different.
In class A I defined the link source and target as well. I can draw the class A link between two
nodes. Every thing is fine. But when I want to draw class B link it disappears from the diagram but
is save to the file. Once I open the diagram again both links are visible but both have the shape of
class A.
How can I solve my problem?
Martin]]>Martin Jacob2009-02-28T19:55:16-00:00Re: link from derived class
https://www.eclipse.org/forums/index.php/mv/msg/70398/220931/#msg_220931
You have to add source end link constraint to a link from "A" like: "self.oclIsKindOf(A)".
This will help GMF realize that a link from B should not be recognized as
a link from A (on the moel level AFAIU these links are identical).
-----------------
Alex Shatalin]]>Alexander Shatalin2009-03-10T13:42:35-00:00