Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » JFace » Drag and drop to outside of Eclipse
Drag and drop to outside of Eclipse [message #633515] Mon, 18 October 2010 09:58 Go to next message
Philipp Schill is currently offline Philipp SchillFriend
Messages: 11
Registered: July 2010
Junior Member
Does anyone have a simple example how to implement a DropAdapter for dropping objects from within Eclipse to the outside world (e.g. windows filesystem)?

Usecase:
I have a TreeViewer and i want to enable drag and drop to e.g. the windows explorer (and create there e.g. a shortcut to this item).

Thanks!
Re: Drag and drop to outside of Eclipse [message #633599 is a reply to message #633515] Mon, 18 October 2010 14:06 Go to previous message
Grant Gayed is currently offline Grant GayedFriend
Messages: 2150
Registered: July 2009
Senior Member
See
http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.swt.exa mples/src/org/eclipse/swt/examples/dnd/DNDExample.java?view= markup .
When you run it change the source's transfer type to File Transfer, select a
file(s), then drag the source label somewhere.

Grant


"Philipp Schill" <public@philippschill.de> wrote in message
news:i9h5i0$q58$1@news.eclipse.org...
> Does anyone have a simple example how to implement a DropAdapter for
> dropping objects from within Eclipse to the outside world (e.g. windows
> filesystem)?
>
> Usecase:
> I have a TreeViewer and i want to enable drag and drop to e.g. the windows
> explorer (and create there e.g. a shortcut to this item).
>
> Thanks!
Previous Topic:[DataBinding] TableViewer - ViewerSupport: render converted text or image
Next Topic:Synchronizing Multiple TableViewers
Goto Forum:
  


Current Time: Fri Apr 26 18:39:07 GMT 2024

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

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

Back to the top