Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » How to move connectioneditparts programmatically
How to move connectioneditparts programmatically [message #559517] Fri, 17 September 2010 00:04
Fernando Herrera is currently offline Fernando HerreraFriend
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
Previous Topic:Search feature in outline view
Next Topic:GraphicsToGraphics2DAdaptor drawTextLayout renders as image. Help?
Goto Forum:
  


Current Time: Wed Sep 25 14:37:11 GMT 2024

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

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

Back to the top