How to move connectioneditparts programmatically [message #559517] |
Fri, 17 September 2010 00:04 |
Fernando Herrera Messages: 49 Registered: January 2010 |
Member |
|
|
Hi people. I'm working in a sequence diagram. I have to move the business messages (source and end bendpoint) in the same delta for the lifeline in order the business message always display in a rectilinear way, when the movement is at north or south I tried the following:
1. When the user select the lifeline get capture the event (solved when a ResizableEditPolicyEx installed)
2. Override getMoveCommand(ChangeBoundsRequest request) and in it I use a compoundCommand in wich i add individuals commands with reconnect requests for each businessMessages (REQ_TARGET at the moment).
3. I add at the compoundcommand the super.getMoveCommand and return it.
The issue is that the default behaviour is executing all the time. No problems show the debug. Any idea about how to move connectioneditparts programmatically? regards
|
|
|
Powered by
FUDForum. Page generated in 0.12569 seconds