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 15:43
Eclipse User
Originally posted by: clau349.hotmail.com

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: Sat Aug 23 01:53:21 EDT 2014

Powered by FUDForum. Page generated in 0.01647 seconds