Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Eclipse Communications Framework (ECF) » Contributing file transfers
Contributing file transfers [message #609964] Thu, 30 November 2006 13:44 Go to next message
Pascal Rapicault is currently offline Pascal RapicaultFriend
Messages: 440
Registered: July 2009
Senior Member
Hi,
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?

Thx

PaScaL
Re: Contributing file transfers [message #609968 is a reply to message #609964] Thu, 30 November 2006 18:07 Go to previous messageGo to next message
Scott Lewis is currently offline Scott LewisFriend
Messages: 1038
Registered: July 2009
Senior Member
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 part.

And then, the IContainer implementation you create has to also provide
an implementation of the IFileTransferContainerAdapter interface and
respond to IContainer.getAdapter(IFileTransferContainerAdapter.class)
appropriately.

Thanks,

Scott

Pascal Rapicault wrote:
> Hi,
> 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?
>
> Thx
>
> PaScaL
>
>
>
Re: Contributing file transfers [message #609970 is a reply to message #609968] Thu, 30 November 2006 19:16 Go to previous messageGo to next message
Pascal Rapicault is currently offline Pascal RapicaultFriend
Messages: 440
Registered: July 2009
Senior Member
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?
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.

PaScaL

"Scott Lewis" <slewis@composent.com> wrote in message
news:456F1DD6.2060301@composent.com...
> 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
> part.
>
> And then, the IContainer implementation you create has to also provide an
> implementation of the IFileTransferContainerAdapter interface and respond
> to IContainer.getAdapter(IFileTransferContainerAdapter.class)
> appropriately.
>
> Thanks,
>
> Scott
>
> Pascal Rapicault wrote:
>> Hi,
>> 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?
>>
>> Thx
>>
>> PaScaL
>>
>>
Re: Contributing file transfers [message #609973 is a reply to message #609970] Thu, 30 November 2006 22:32 Go to previous message
Scott Lewis is currently offline Scott LewisFriend
Messages: 1038
Registered: July 2009
Senior Member
Hi Pascal,

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
org.eclipse.ecf.ui.configurationWizards.

> 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


>
> PaScaL
>
> "Scott Lewis" <slewis@composent.com> wrote in message
> news:456F1DD6.2060301@composent.com...
>> 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
>> part.
>>
>> And then, the IContainer implementation you create has to also provide an
>> implementation of the IFileTransferContainerAdapter interface and respond
>> to IContainer.getAdapter(IFileTransferContainerAdapter.class)
>> appropriately.
>>
>> Thanks,
>>
>> Scott
>>
>> Pascal Rapicault wrote:
>>> Hi,
>>> 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?
>>>
>>> Thx
>>>
>>> PaScaL
>>>
>>>
>
Previous Topic:Remote Services Registration
Next Topic:IRCLib IP approval
Goto Forum:
  


Current Time: Fri Mar 29 07:29:03 GMT 2024

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

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

Back to the top