How to drag a file into an email as an attachment

Hi there,

I’m developing an Eclipse View with the ability to drag an attachment from an email into one of the fields. As a result in my drop listener I get a string which it the path to the file in the filesystem.

What I’m trying to do is to implement a DragSource to drag a file from my view into an email (as an attachment).

I tried FileTransfer, URLTransfer with an URIDescriptor as payload, TextTransfer with the path to the file I want to attach, all to no avail.

Any pointers, ideas, clues on what to use here?

Cheers

Marc

Subject: Solution

Found the answer myself.

The trick is to use a FileTransfer type and not attach a File to the events data but a String array with the absolute path to the files …

Doh…

Marc