Skip to main content



      Home
Home » Eclipse Projects » GEF » Drag and drop
Drag and drop [message #683857] Tue, 14 June 2011 10:22 Go to next message
Eclipse UserFriend
Hello!

I am new to gef and having some trouble getting started. I have a gef application up and running where i have some children inside a layout that i want to drag and drop in a certain way. However when i use the XYLayoutEditPolicy and overriding the createChangeConstraintCommand(EditPart child, Object constraint) it "contiounsly" generates constraints for me. I´m ONLY LOOKING for the position where the children is DROPPED.
Since i am a newbie to this i am glad if anyone just can point me in the right direction. Started to looking at the getDragTracker() method to figure out when the mouse button is relased, is this the right way to go?

Very thankful for any help!
Br
Martin
Re: Drag and drop [message #716079 is a reply to message #683857] Tue, 16 August 2011 08:23 Go to previous message
Eclipse UserFriend
Hi,

Just have set and get layout in corresponding model, while getting constraint set corresponding request constraints in layout of model, in refreshVisuals of editpart, just getModel().getLayout and set it our here.

Regards,
Karthikeyan.B
Previous Topic:[zest] initial layout locations at origin
Next Topic:Exporting to Image (Again)
Goto Forum:
  


Current Time: Fri Apr 25 02:57:08 EDT 2025

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

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

Back to the top