Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Dragging multiple figures vs. one
Dragging multiple figures vs. one [message #502555] Tue, 08 December 2009 19:30 Go to next message
Gerrit  is currently offline Gerrit Friend
Messages: 30
Registered: July 2009
Member
I have use the Shape Diagram Editor as an example to create my own GEF editor. However, when I drag around multiple figures in my own editor, they all get dragged to the same mouse location, ignoring the different offset of each shape.

Dragging multiple parts in the GEF Shapes example works fine. My question is: where does the GEF framework catch the multi-selection when selecting and dragging multiple figures? In this scenario, which objects get created for each figure, and which once for the drag as a whole?

Thanks for any insights!

Regards,
Gerrit
Re: Dragging multiple figures vs. one [message #504674 is a reply to message #502555] Mon, 21 December 2009 22:20 Go to previous message
Felix L J Mayer is currently offline Felix L J MayerFriend
Messages: 202
Registered: July 2009
Senior Member
In this case, org.eclipse.gef.tools.DragEditPartsTracker#getCommand() sends
a ChangeBoundsRequest to each selected EditPart. In my cae they are handled
individually in
org.eclipse.gef.editpolicies.ConstrainedLayoutEditPolicy#cre ateChangeConstraintCommand().
Previous Topic:Zoom in horizontally on draw2d canvas
Next Topic:How to have Properties view follow Outline view selections?
Goto Forum:
  


Current Time: Wed Apr 24 19:20:29 GMT 2024

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

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

Back to the top