Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » How to generate a link with multiple sources and targets
How to generate a link with multiple sources and targets [message #206742] Wed, 24 September 2008 09:53 Go to next message
Patrick Tessier is currently offline Patrick TessierFriend
Messages: 341
Registered: July 2009
Location: Paris Saclay, France
Senior Member
Hi,
I would like to know how we can generate a link with mulitple source and
target.

Can we use a invisible node betwen multiple incomings and outgoings?

Patrick
Re: How to generate a link with multiple sources and targets [message #206760 is a reply to message #206742] Wed, 24 September 2008 10:49 Go to previous messageGo to next message
Alexander Shatalin is currently offline Alexander ShatalinFriend
Messages: 2928
Registered: July 2009
Senior Member
Hello Patrick,

Yes, you have to "simulate" this kind of link - GMF supports only links with
one start and one end, so you can create intermediate node on diagram and
draw several links to/from it.

-----------------
Alex Shatalin
Re: How to generate a link with multiple sources and targets [message #206768 is a reply to message #206760] Wed, 24 September 2008 11:44 Go to previous messageGo to next message
Patrick Tessier is currently offline Patrick TessierFriend
Messages: 341
Registered: July 2009
Location: Paris Saclay, France
Senior Member
Have you an idea how to program this solution with the runtime of gmf?

Patrick

"Alex Shatalin" <vano@borland.com> a
Re: How to generate a link with multiple sources and targets [message #206828 is a reply to message #206768] Wed, 24 September 2008 14:02 Go to previous messageGo to next message
Alexander Shatalin is currently offline Alexander ShatalinFriend
Messages: 2928
Registered: July 2009
Senior Member
Hello Patrick,

I think you can add one more node to the domain model - "link center" one;
add NodeMapping for this node; add LinkMappings describing links to/from
this node to actual link destinations and generate diagram code. Then you
can try tuning this diagram like: implement proper viewmapping for this "intermadiate"
node and all the links. If you fill this solution is ok for you then you
can follow it and generate all the code by GMF. In other cases you can modify
GMF-generated code to support these links in a different way.

-----------------
Alex Shatalin
Re: How to generate a link with multiple sources and targets [message #206844 is a reply to message #206828] Wed, 24 September 2008 14:15 Go to previous messageGo to next message
Patrick Tessier is currently offline Patrick TessierFriend
Messages: 341
Registered: July 2009
Location: Paris Saclay, France
Senior Member
In my case I can not modify the model domain. This model domain is the UML.


"Alex Shatalin" <vano@borland.com> a
Re: How to generate a link with multiple sources and targets [message #206876 is a reply to message #206844] Wed, 24 September 2008 14:25 Go to previous message
Alexander Shatalin is currently offline Alexander ShatalinFriend
Messages: 2928
Registered: July 2009
Senior Member
Hello Patrick,

> In my case I can not modify the model domain. This model domain is the
> UML.
Well... rather complex domain. ;-)
I think you can reuse existing unl2tools project with their diagrams then.

-----------------
Alex Shatalin
Previous Topic:set elements' attributes in different form
Next Topic:Changing Link Arrows
Goto Forum:
  


Current Time: Fri Apr 19 12:40:08 GMT 2024

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

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

Back to the top