Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » JFace » DnD Question(What exactly is the DragSourceEvent used for?)
icon5.gif  DnD Question [message #900340] Mon, 06 August 2012 14:43 Go to next message
Thomas Klöber is currently offline Thomas KlöberFriend
Messages: 10
Registered: June 2012
Junior Member
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 14:46]

Report message to a moderator

Re: DnD Question [message #900444 is a reply to message #900340] Tue, 07 August 2012 06:41 Go to previous messageGo to next message
Jan Krakora is currently offline Jan KrakoraFriend
Messages: 477
Registered: December 2009
Location: Prague
Senior Member
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 07:21 Go to previous messageGo to next message
Thomas Klöber is currently offline Thomas KlöberFriend
Messages: 10
Registered: June 2012
Junior Member
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 07:33 Go to previous messageGo to next message
Jan Krakora is currently offline Jan KrakoraFriend
Messages: 477
Registered: December 2009
Location: Prague
Senior Member
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 13:53 Go to previous message
Thomas Klöber is currently offline Thomas KlöberFriend
Messages: 10
Registered: June 2012
Junior Member
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 Mar 19 11:35:26 GMT 2024

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

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

Back to the top