[
Date Prev
][
Date Next
][
Thread Prev
][
Thread Next
][
Date Index
][
Thread Index
] [
Newsgroup Home
]
[news.eclipse.platform] Drag File out a View to Package Explorer
From
:
andy.auyeung@xxxxxxx
(Andy)
Date
: Thu, 21 Feb 2008 18:44:19 +0000 (UTC)
Newsgroups
:
eclipse.platform
Organization
: Eclipse
User-agent
: NewsPortal/0.36 (http://florian-amrhein.de/newsportal)
I want to drag an item from my View to the Package Explorer as a file. The code below doesn't do the job. Does anyone know how to correct it ?
class MyDragSource implements DragSourceListener
{ .
.
.
public void dragSetData(DragSourceEvent event)
{
if (FileTransfer.getInstance().isSupportedType(event.dataType))
{
event.data = new File("c:\\abc.txt"); }
}
}
Follow-Ups
:
[news.eclipse.platform] Re: Drag File out a View to Package Explorer
From:
Qinxian
Prev by Date:
[news.eclipse.platform] Problem with .target file
Next by Date:
[news.eclipse.platform] Re: Package Explorer Handler
Previous by thread:
[news.eclipse.platform] Problem with .target file
Next by thread:
[news.eclipse.platform] Re: Drag File out a View to Package Explorer
Index(es):
Date
Thread