Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » link from derived class
link from derived class [message #220292] Sat, 28 February 2009 19:55 Go to next message
Martin Jacob is currently offline Martin JacobFriend
Messages: 189
Registered: July 2009
Senior Member
Hi,

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
Re: link from derived class [message #220931 is a reply to message #220292] Tue, 10 March 2009 13:42 Go to previous message
Alexander Shatalin is currently offline Alexander ShatalinFriend
Messages: 2928
Registered: July 2009
Senior Member
Hello Martin,

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
Previous Topic:gmftool - creation tool sequence
Next Topic:How can I use self-defined model as EMF generated editors' input? How to handle the resource synchro
Goto Forum:
  


Current Time: Wed Mar 03 07:01:52 GMT 2021

Powered by FUDForum. Page generated in 0.02123 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top