Skip to main content



      Home
Home » Eclipse Projects » JFace » DnD Question(What exactly is the DragSourceEvent used for?)
icon5.gif  DnD Question [message #900340] Mon, 06 August 2012 10:43 Go to next message
Eclipse UserFriend
Folks'es,

I'm trying to implement a DnD in a TreeViewer.
I noticed that the DragSourceEvent object passed to dragStart, dragSetData and dragFinished are different.
So what can I use them for?

[Updated on: Mon, 06 August 2012 10:46] by Moderator

Re: DnD Question [message #900444 is a reply to message #900340] Tue, 07 August 2012 02:41 Go to previous messageGo to next message
Eclipse UserFriend
Hi Thomas, read this article
http://www.eclipse.org/articles/Article-SWT-DND/DND-in-SWT.html
Re: DnD Question [message #900449 is a reply to message #900444] Tue, 07 August 2012 03:21 Go to previous messageGo to next message
Eclipse UserFriend
Thanks Jan, but I've been there. It doesn't really explain what the DragSourceEvent object can be used for. Obviously not to pass data between the different methods that are being called...
Re: DnD Question [message #900453 is a reply to message #900449] Tue, 07 August 2012 03:33 Go to previous messageGo to next message
Eclipse UserFriend
Then look at the javadoc of the org.eclipse.swt.dnd.DragSourceListener. Every method has a description saying what field is in or out.
Re: DnD Question [message #900553 is a reply to message #900453] Tue, 07 August 2012 09:53 Go to previous message
Eclipse UserFriend
right, but it doesn't answer my question: what is the semantic of the event object?
It would have thought that it is the same object being passed to the different methods, so that I could use event.data to pass application specific information...
Previous Topic:DnD of POJOs
Next Topic:DnD Question
Goto Forum:
  


Current Time: Tue Jul 22 18:42:04 EDT 2025

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

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

Back to the top