Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Missing ISynchronizeParticipant creation API from Platform?
Missing ISynchronizeParticipant creation API from Platform? [message #333085] Tue, 25 November 2008 10:12 Go to next message
Sebastien Boucard is currently offline Sebastien BoucardFriend
Messages: 9
Registered: July 2009
Junior Member
Hello there,

I created an editor that manages a set of IResource. I'd like to provide
an action in this editor to automatically synchronize those resources in
the Synchronize perspective, whatever the underlying repository provider
is. My goal is to avoid the user having to re-select such resources in the
explorer and perform "Team > Synchronize".

Team Core APIs (org.eclipse.team.core.synchronize) enable to handle my use
case. However the UI part does not. My understanding is that UI APIs offer
a great infrastructure for repository providers to implement
synchronization, but does not allow to request synchronization from the
Platform itself. It must occur from an action specific to a repository
provider (Team menu), or though the Synchronize wizard (which I'd really
like to avoid, since I know exactly what resources to manage, and so the
repository provider to use).

Did I missed something here?

Regards,
Sebastien Boucard
www.mdworkbench.com
Re: Missing ISynchronizeParticipant creation API from Platform? [message #333095 is a reply to message #333085] Tue, 25 November 2008 16:58 Go to previous messageGo to next message
Michael Valenta is currently offline Michael ValentaFriend
Messages: 35
Registered: July 2009
Member
Sebastien,

You should adapt your editor input to a ResourceMapping (see
IAdapterManager). This will allow repository providers to detect that
you input is resource based and the repository actions should appear in
your editor.

Michael

Sebastien Boucard wrote:
> Hello there,
>
> I created an editor that manages a set of IResource. I'd like to provide
> an action in this editor to automatically synchronize those resources in
> the Synchronize perspective, whatever the underlying repository provider
> is. My goal is to avoid the user having to re-select such resources in
> the explorer and perform "Team > Synchronize".
>
> Team Core APIs (org.eclipse.team.core.synchronize) enable to handle my
> use case. However the UI part does not. My understanding is that UI APIs
> offer a great infrastructure for repository providers to implement
> synchronization, but does not allow to request synchronization from the
> Platform itself. It must occur from an action specific to a repository
> provider (Team menu), or though the Synchronize wizard (which I'd really
> like to avoid, since I know exactly what resources to manage, and so the
> repository provider to use).
>
> Did I missed something here?
>
> Regards,
> Sebastien Boucard
> www.mdworkbench.com
>
Re: Missing ISynchronizeParticipant creation API from Platform? [message #333171 is a reply to message #333095] Thu, 27 November 2008 16:22 Go to previous message
Sebastien Boucard is currently offline Sebastien BoucardFriend
Messages: 9
Registered: July 2009
Junior Member
Thanks for the tip Michael.

As my editor is a multi page form editor, I would have liked the
opportunity to display a "Synchronize with Reporitory..." action in a
part, similar to the Dependency Analysis part of Manifest editor. I
believe this is not possible in a repository provider agnostic way, I
"only" get popup menu contribution.

Anyway, your help was greatly appreciated.

Sebastien

Michael Valenta wrote:

> Sebastien,

> You should adapt your editor input to a ResourceMapping (see
> IAdapterManager). This will allow repository providers to detect that
> you input is resource based and the repository actions should appear in
> your editor.

> Michael

> Sebastien Boucard wrote:
>> Hello there,
>>
>> I created an editor that manages a set of IResource. I'd like to provide
>> an action in this editor to automatically synchronize those resources in
>> the Synchronize perspective, whatever the underlying repository provider
>> is. My goal is to avoid the user having to re-select such resources in
>> the explorer and perform "Team > Synchronize".
>>
>> Team Core APIs (org.eclipse.team.core.synchronize) enable to handle my
>> use case. However the UI part does not. My understanding is that UI APIs
>> offer a great infrastructure for repository providers to implement
>> synchronization, but does not allow to request synchronization from the
>> Platform itself. It must occur from an action specific to a repository
>> provider (Team menu), or though the Synchronize wizard (which I'd really
>> like to avoid, since I know exactly what resources to manage, and so the
>> repository provider to use).
>>
>> Did I missed something here?
>>
>> Regards,
>> Sebastien Boucard
>> www.mdworkbench.com
>>
Previous Topic:Insert text programtically into active editor
Next Topic:Ant incremental build
Goto Forum:
  


Current Time: Sat Oct 05 05:04:49 GMT 2024

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

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

Back to the top