Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Doubt about chosing Particiapnt while extending Team Sychronize
Doubt about chosing Particiapnt while extending Team Sychronize [message #309605] Thu, 02 November 2006 06:35 Go to next message
Eclipse UserFriend
Originally posted by: priya_kothari.persistent.co.in

Hi,

I am writing a plugin for a SCM. I want to extend the Team Synchronization
behavior. I have written a participant which extends SubscriberParticipant.
But there is another class viz ModelSynchronizeParticipant. I don't
understand the behavioral difference in these two particpants. Can some one
tell me the advantages / disadvantages of both?

Also when I do synchronize for my plugin, and click on finish, it pop-ups a
dialog of whether I want to switch to Team Synchronization Perspective. But
I don't want this dialog box to come up and on Finish its should directly
open my custom perspective. How I can achieve this?

TIA

~Priya
Re: Doubt about chosing Particiapnt while extending Team Sychronize [message #309609 is a reply to message #309605] Thu, 02 November 2006 08:44 Go to previous messageGo to next message
Eclipse UserFriend
Priya wrote:
> Hi,
>
> I am writing a plugin for a SCM. I want to extend the Team Synchronization
> behavior. I have written a participant which extends SubscriberParticipant.
> But there is another class viz ModelSynchronizeParticipant. I don't
> understand the behavioral difference in these two particpants. Can some one
> tell me the advantages / disadvantages of both?

ModelSynchronizeParticipants allow model providers to participate in the
rendering of the tree in the sync view. For example, if a
synchronization contained Java projects, the projects would appear as
java projects in the synchronize view and would contain packages instead
of folders. Here's a link to the doc that describes this API. Have a
look at the repository roadmap.

http://help.eclipse.org/help32/index.jsp?topic=/org.eclipse. platform.doc.isv/guide/team_model.htm

>
> Also when I do synchronize for my plugin, and click on finish, it pop-ups a
> dialog of whether I want to switch to Team Synchronization Perspective. But
> I don't want this dialog box to come up and on Finish its should directly
> open my custom perspective. How I can achieve this?

This is controlled by a preference on the Team preference page. You can
configure whether you should be prompted and what perspective to switch to.

>
> TIA
>
> ~Priya
>
>
Re: Doubt about chosing Particiapnt while extending Team Sychronize [message #309643 is a reply to message #309609] Fri, 03 November 2006 01:53 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: priya_kothari.persistent.co.in

Thanks for the info. I had one more doubt about the dialog box for Team
Perspective. Is there any way I can programmatically through my plugin set
the perspective to be opened on Synchronize action?
The same way as CVS does, CVS plugin does not change the perspective in the
Team preference page. I guess it does it programmatically using
getPreferenceStore.

Any pointers would be of great help.
TIA

~Priya


"Michael Valenta" <Michael_Valenta@ca.ibm.com> wrote in message
news:eicsn1$d6t$1@utils.eclipse.org...
> Priya wrote:
>> Hi,
>>
>> I am writing a plugin for a SCM. I want to extend the Team
>> Synchronization behavior. I have written a participant which extends
>> SubscriberParticipant. But there is another class viz
>> ModelSynchronizeParticipant. I don't understand the behavioral difference
>> in these two particpants. Can some one tell me the advantages /
>> disadvantages of both?
>
> ModelSynchronizeParticipants allow model providers to participate in the
> rendering of the tree in the sync view. For example, if a synchronization
> contained Java projects, the projects would appear as java projects in the
> synchronize view and would contain packages instead of folders. Here's a
> link to the doc that describes this API. Have a look at the repository
> roadmap.
>
> http://help.eclipse.org/help32/index.jsp?topic=/org.eclipse. platform.doc.isv/guide/team_model.htm
>
>>
>> Also when I do synchronize for my plugin, and click on finish, it pop-ups
>> a dialog of whether I want to switch to Team Synchronization Perspective.
>> But I don't want this dialog box to come up and on Finish its should
>> directly open my custom perspective. How I can achieve this?
>
> This is controlled by a preference on the Team preference page. You can
> configure whether you should be prompted and what perspective to switch
> to.
>
>>
>> TIA
>>
>> ~Priya
Re: Doubt about chosing Particiapnt while extending Team Sychronize [message #309653 is a reply to message #309643] Fri, 03 November 2006 08:21 Go to previous message
Eclipse UserFriend
Priya,

I'm not sure what you mean. For CVS synchronizations, the Team
preference is used. The perspective switch is performed in the
ISynchronizeManager#showSynchronizeViewInactivePage() method. There is
no way to override this programmatically. CVS has its own perspective
switching for the Show Annotate operation but that is independent of
synchronizing.

Michael

Priya wrote:
> Thanks for the info. I had one more doubt about the dialog box for Team
> Perspective. Is there any way I can programmatically through my plugin set
> the perspective to be opened on Synchronize action?
> The same way as CVS does, CVS plugin does not change the perspective in the
> Team preference page. I guess it does it programmatically using
> getPreferenceStore.
>
> Any pointers would be of great help.
> TIA
>
> ~Priya
>
>
> "Michael Valenta" <Michael_Valenta@ca.ibm.com> wrote in message
> news:eicsn1$d6t$1@utils.eclipse.org...
>> Priya wrote:
>>> Hi,
>>>
>>> I am writing a plugin for a SCM. I want to extend the Team
>>> Synchronization behavior. I have written a participant which extends
>>> SubscriberParticipant. But there is another class viz
>>> ModelSynchronizeParticipant. I don't understand the behavioral difference
>>> in these two particpants. Can some one tell me the advantages /
>>> disadvantages of both?
>> ModelSynchronizeParticipants allow model providers to participate in the
>> rendering of the tree in the sync view. For example, if a synchronization
>> contained Java projects, the projects would appear as java projects in the
>> synchronize view and would contain packages instead of folders. Here's a
>> link to the doc that describes this API. Have a look at the repository
>> roadmap.
>>
>> http://help.eclipse.org/help32/index.jsp?topic=/org.eclipse. platform.doc.isv/guide/team_model.htm
>>
>>> Also when I do synchronize for my plugin, and click on finish, it pop-ups
>>> a dialog of whether I want to switch to Team Synchronization Perspective.
>>> But I don't want this dialog box to come up and on Finish its should
>>> directly open my custom perspective. How I can achieve this?
>> This is controlled by a preference on the Team preference page. You can
>> configure whether you should be prompted and what perspective to switch
>> to.
>>
>>> TIA
>>>
>>> ~Priya
>
>
Previous Topic:How to open an object editor using OpenFileAction?
Next Topic:Porting Eclipse 3.2 to HP-UX Itanium with GTK
Goto Forum:
  


Current Time: Mon Nov 03 03:46:13 EST 2025

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

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

Back to the top