Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » DND in a EditPartViewer
DND in a EditPartViewer [message #216805] Wed, 24 May 2006 19:43
Eclipse UserFriend
Originally posted by:

In my RCP application, i got a treeViewer in a view and i have a EditPartViewer. My EditPartViewer contains some figures... I try to drag an object from my tree to any figure in my EditPartViewer, which implements <i>addDropTargetListener</i>(). I need the mouse location to call the funtion EditPartViewer.findObjectAt(Point point) so i can find the figure and drop in it the object from the treeViewer.

I can find that position calling the function getLocationDrop() in my DropTargetListener. But my problem is that my EditPartViewer got vertical and horizontal scrolls. So the position that the function
getLocationDrop() gives me does not take care of it.

is There a way to get the mouse cursor position in my EditPartViewer that give me the real position?

Thanks for any help or advice you can give me...
Previous Topic:Create a connection in a context menu and few other things
Next Topic:Insert node on the point where I clicked
Goto Forum:

Current Time: Fri Feb 24 01:22:40 GMT 2017

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

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