Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Drag and drop
Drag and drop [message #683857] Tue, 14 June 2011 14:22 Go to next message
Martin Missing name is currently offline Martin Missing nameFriend
Messages: 14
Registered: June 2011
Junior Member
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 12:23 Go to previous message
Karthikeyan Missing name is currently offline Karthikeyan Missing nameFriend
Messages: 47
Registered: July 2011
Member
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: Thu Sep 26 04:26:14 GMT 2024

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

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

Back to the top