Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Connection Handle setting an attribute on a link question
Connection Handle setting an attribute on a link question [message #181012] Fri, 04 April 2008 19:32
Brian Jakubik is currently offline Brian JakubikFriend
Messages: 140
Registered: July 2009
Senior Member
A little background on my Decision node. It is basically a switch with
1..* named legs.

I have a DecisionEditPart and have installed a
DecisionConnectionHandleEditPolicy that removes the incoming handle and
adds 0..* outgoing handles, each handle with a tooltip of the named leg.
This appears to work fine.

Now, when I drag one of the connection handles, I would like to set a
attribute on the link that is created, based on the leg handle that was
dragged... Can this info be passed along to the link create command or
is it accessible???

Example, decision with 3 legs, and the 3 connection handles (one for
each leg) (I have this part working)
____________
| Decision |
| a |--a>
| b |--b>
| c |--c>
|____________|

dragging the b handle to b_node I would like to set the leg attribute of
the link to b... (what I am trying to achieve) so it looks like

<decision ...>
<case leg="a" cond="a=2"/>
<case leg="b" cond="b=2"/>
<case leg="c" cond="c=2"/>

<link leg="b" next="b_node"/>
<decision>

____________
| Decision |
| a |--a> ________
| b |------------------leg=b------------>| b_node |
| c |--c> |________|
|____________|

any direction would be appreciated.

Thanks
Brian Jakubik
Previous Topic:multiple top node references with same editpart ?
Next Topic:[Announce] ... missing
Goto Forum:
  


Current Time: Thu Apr 25 23:05:02 GMT 2024

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

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

Back to the top