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:

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:Drag and drop inside and outside a viewer
Next Topic:Print from multi-page editor w/ a GEF page
Goto Forum:

Current Time: Fri May 25 13:08:31 GMT 2018

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

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

Back to the top