Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Unifying Connections/Links(How to bundle different links within a kind of connector)
Unifying Connections/Links [message #703556] Wed, 27 July 2011 17:29 Go to next message
newbie_on_gmf is currently offline newbie_on_gmfFriend
Messages: 11
Registered: June 2011
Junior Member
Hi all,

I got a question on defining special kinds of links and I'm hoping for your professional help.

Consider the following use case:
Nodes: A, B, C, X
Edges/Links: A-X, B-X, C-X

My question is, if there is any possibility to bundle these links within a kind of connector?

So instead of:
       A
        \
         \
B ----- X
         /
        /
      C

I'm looking for something like this (where O is a kind of connector):

    A
     \
      \
B ---O---- X
       /
      /
    C

(Its important that each link have a semantic source and target, so that the link A-X still holds the source A and target X.)

Hope anyone had a good idea.


regards

[Updated on: Wed, 27 July 2011 19:19]

Report message to a moderator

Re: Unifying Connections/Links [message #703871 is a reply to message #703556] Thu, 28 July 2011 02:15 Go to previous messageGo to next message
Iqbal Hossain is currently offline Iqbal HossainFriend
Messages: 101
Registered: May 2011
Location: Bangladesh
Senior Member
As ur diagram shows, i think u have to create 4 transition among the nodes.
A-O, B-O, C-O, X-O.
Re: Unifying Connections/Links [message #704581 is a reply to message #703871] Thu, 28 July 2011 20:07 Go to previous messageGo to next message
newbie_on_gmf is currently offline newbie_on_gmfFriend
Messages: 11
Registered: June 2011
Junior Member
Thanks for your reply.

But I do not want to model 'O' as a node or eClass because it has not a semantic meaning.
The 'O'-point (or connector) is actually needed for syntactic correctness of the graphical model.
So im looking for a way to get this 'O' as decorator or so...

Any suggestions?
Re: Unifying Connections/Links [message #704927 is a reply to message #704581] Fri, 29 July 2011 08:20 Go to previous messageGo to next message
Valerian Merkling is currently offline Valerian MerklingFriend
Messages: 71
Registered: May 2011
Member
I'm not a GMF expert, but there is no connector like your O.
If you refer to the basic graph theory, on your scheme O is a node, as A B C and X.
Create a node O to link everything is, i think, the best solution.

The other solution should be to modifiy the diagram code to redraw A--W, B--X and C--X when you add a new connection.

Re: Unifying Connections/Links [message #704933 is a reply to message #704927] Fri, 29 July 2011 08:38 Go to previous message
Ralph Gerbig is currently offline Ralph GerbigFriend
Messages: 697
Registered: November 2009
Senior Member
Hi,

maybe you are looking for this:

http://www.eclipse.org/forums/index.php/m/643782/#msg_643782

Unfortunatly I did not get it running. I opened a bug on this. Please comment with your need https://bugs.eclipse.org/bugs/show_bug.cgi?id=331868.

Ralph
Previous Topic:How to introduce new Element inside GMF Generated PALETTE after Diagram Code Generation
Next Topic:Node and link editing
Goto Forum:
  


Current Time: Sun Nov 23 03:50:36 GMT 2014

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

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