Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [ecf-dev] Filetransfer

Hi Eugen,

Eugen Reiswich wrote:
Hi folks,

I'm trying to develop a filetransfer based on ECF as described in: http://www.eclipse.org/ecf/org.eclipse.ecf.docs/api/ --> ISendFileTransferContainerAdapter

I wonder now what an IFileID is supposed to do? The example shows that you can put a simple ID from the identity package to send a File, but it doesn't work for me ("... method is not applicable for arguments ..."). So my question is how do I convert an identity ID to an IFileID?

The easiest way is to create an IFileID instance using an URL and the FileIDFactory:

e.g.

IFileID fileID = FileIDFactory.createFileID(namespace,new URL("scp://user@xxxxxxxx/filename.ext"));

Where the target file name is filename.ext.

I will update the javadocs documentation with this bug: https://bugs.eclipse.org/bugs/show_bug.cgi?id=236145

There are further examples of this in the example code.
http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.ecf/tests/org.eclipse.ecf.tests.provider.filetransfer.scp/src/org/eclipse/ecf/tests/provider/filetransfer/scp/SCPOutgoingTest.java?root=Technology_Project&view=log

There is this bug (with scp) that I am looking at now: https://bugs.eclipse.org/bugs/show_bug.cgi?id=234329

Thanks,

Scott





I would appreciate if anyone could help me.

Regards,
Eugen

PS.: is there some example/code snippet how to develop a remote file browser dialog?
_______________________________________________
ecf-dev mailing list
ecf-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/ecf-dev



Back to the top