Connection Handle setting an attribute on a link question [message #181012] |
Fri, 04 April 2008 19:32 |
Brian Jakubik 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
|
|
|
Powered by
FUDForum. Page generated in 0.02432 seconds