Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Drag 'N Drop in SWT
Drag 'N Drop in SWT [message #438506] Sat, 26 June 2004 22:58 Go to next message
Eclipse UserFriend
Originally posted by: gtg141i.mail.gatech.edu

I am trying to get a drag and drop from a TreeViewer to another ViewPart
(specifically, the Composite that is being sent into the
createPartControl() method of my ViewPart) in a plugin I am creating. The
DragSourceListener seems to be working fine, and the DropTargetListener is
registering that there is a dragOver(), but the cursor displays as a
circle w/ a line through it and the drop method in my DropTargetListener
isn't getting called.

Thanks,
--Cyrus
Re: Drag 'N Drop in SWT [message #438580 is a reply to message #438506] Mon, 28 June 2004 14:03 Go to previous message
Veronika Irvine is currently offline Veronika IrvineFriend
Messages: 1272
Registered: July 2009
Senior Member
Is your drag source providing data in the DragSourceListener.dragSetData
event?

See:

http://www.eclipse.org/articles/Article-SWT-DND/DND-in-SWT.h tml

http://www.eclipse.org/articles/Article-Workbench-DND/drag_d rop.html


"Cyrus" <gtg141i@mail.gatech.edu> wrote in message
news:cbkv2d$f97$1@eclipse.org...
> I am trying to get a drag and drop from a TreeViewer to another ViewPart
> (specifically, the Composite that is being sent into the
> createPartControl() method of my ViewPart) in a plugin I am creating. The
> DragSourceListener seems to be working fine, and the DropTargetListener is
> registering that there is a dragOver(), but the cursor displays as a
> circle w/ a line through it and the drop method in my DropTargetListener
> isn't getting called.
>
> Thanks,
> --Cyrus
>
Previous Topic:sort direction indicator
Next Topic:JFace vs Swing approach to MVC
Goto Forum:
  


Current Time: Thu Sep 19 22:37:35 GMT 2024

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

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

Back to the top