Skip to main content


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: 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: Fri Apr 26 04:31:33 GMT 2024

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

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

Back to the top