|Re: Contributing file transfers [message #609973 is a reply to message #609970]
||Thu, 30 November 2006 22:32
| Scott Lewis
Registered: July 2009
Pascal Rapicault wrote:
> So just to confirm, this means I need to create a new container which means
> that to be able to transfer a file, a client code needs to "know" about the
> mapping container / transport. I find this really unfortunate since it makes
> it impossible to use the filetransfer API transparently.
> Did I miss anything?
Well, it is possible to inspect available ContainerTypeDescriptions and
their associated supported adapter types (e.g.
IFileTransferContainerAdapter) in order to decide upon a file transfer
type (i.e. see posting today on ecf-dev in response to your email
there). Or consult the user can be consulted via
> Have you thought of an approach where filetransfers would be contributed
> through a specific extension point and would all be available through a
> wellknown container, or even better for all containers.
I have had these thoughts, but resisted the temptation to create too
many new extension points too quickly (i.e. one for file transfer plugin
that does as you describe...and perhaps others for other ECF 'extension'
APIs). I would certainly be ready to add this, however.
> "Scott Lewis" <firstname.lastname@example.org> wrote in message
>> Hi Pascal,
>> All that's necessary is to provide an extension via the
>> org.eclipse.ecf.containerFactory extension point.
>> There are docs for this and all extension points in the ECF SDK Eclipse
>> help (under Reference), and of course it can be generated directly via
>> schema if you have source in workspace (in org.eclipse.ecf plugin).
>> Note that the icon and visible attributes in this extension point schema
>> have recently been removed (after 0.9.3 build). They were a mistake on my
>> And then, the IContainer implementation you create has to also provide an
>> implementation of the IFileTransferContainerAdapter interface and respond
>> to IContainer.getAdapter(IFileTransferContainerAdapter.class)
>> Pascal Rapicault wrote:
>>> I would like to understand how contributions of new file transfer
>>> protocol is done.
>>> Does it require the creation of a new container?
>>> Is there any doc?
Powered by FUDForum
. Page generated in 0.07398 seconds