Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » How to define Drag and drop transfer types?
How to define Drag and drop transfer types? [message #444069] Wed, 06 October 2004 15:04 Go to next message
Eclipse UserFriend
Originally posted by: dominique.vlieghe.dmbr.ugent.be

Hello all,

Does anyone know some good pointers to examples on how to define your
own transfer types for a drag and drop operation? I found the nice
tutorial of e.g Veronika Irvine but it describes only transfers of
simple Text data types.

More concretely, I have a canvas whereon I have defined my own graphical
element classes, and I would like to move them around using drag and drop.

Any suggestions?
Re: How to define Drag and drop transfer types? [message #444079 is a reply to message #444069] Wed, 06 October 2004 18:32 Go to previous messageGo to next message
Veronika Irvine is currently offline Veronika IrvineFriend
Messages: 1272
Registered: July 2009
Senior Member
See the snippet "define my own data transfer type":

http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.swt.sni ppets/src/org/eclipse/swt/snippets/Snippet79.java?rev=HEAD&a mp;content-type=text/vnd.viewcvs-markup

"Dominique Vlieghe" <dominique.vlieghe@dmbr.ugent.be> wrote in message
news:ck1187$ada$1@eclipse.org...
> Hello all,
>
> Does anyone know some good pointers to examples on how to define your own
> transfer types for a drag and drop operation? I found the nice tutorial of
> e.g Veronika Irvine but it describes only transfers of simple Text data
> types.
>
> More concretely, I have a canvas whereon I have defined my own graphical
> element classes, and I would like to move them around using drag and drop.
>
> Any suggestions?
Re: How to define Drag and drop transfer types? [message #444125 is a reply to message #444079] Wed, 06 October 2004 19:40 Go to previous message
Eclipse UserFriend
Originally posted by: dominique.vlieghe.dmbr.ugent.be

Thank you very much. Meanwhile, I found the snippet myself, sorry about
that. But I deserve some mercy, because the eclipse snippets are really
hard to find.

Anyhow, using the snippet I was able to transfer my own objects with
success. Maybe it would be informative to add the snippet to your DnD
tutorial.

Regards

Dominique


Veronika Irvine wrote:
> See the snippet "define my own data transfer type":
>
> http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.swt.sni ppets/src/org/eclipse/swt/snippets/Snippet79.java?rev=HEAD&a mp;content-type=text/vnd.viewcvs-markup
>
> "Dominique Vlieghe" <dominique.vlieghe@dmbr.ugent.be> wrote in message
> news:ck1187$ada$1@eclipse.org...
>
>>Hello all,
>>
>>Does anyone know some good pointers to examples on how to define your own
>>transfer types for a drag and drop operation? I found the nice tutorial of
>>e.g Veronika Irvine but it describes only transfers of simple Text data
>>types.
>>
>>More concretely, I have a canvas whereon I have defined my own graphical
>>element classes, and I would like to move them around using drag and drop.
>>
>>Any suggestions?
>
>
>
Previous Topic:ActiveX Support in SWT
Next Topic:How do I mimic Window/New Window
Goto Forum:
  


Current Time: Wed Oct 28 21:04:22 GMT 2020

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

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

Back to the top