Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Team API for setting SyncInfo
Team API for setting SyncInfo [message #290712] Tue, 30 August 2005 14:03 Go to next message
Sytze van Koningsveld is currently offline Sytze van KoningsveldFriend
Messages: 4
Registered: July 2009
Junior Member
Hi all,

I want to set the SyncInfo kind of a resource to SyncInfo.OUTGOING via the
Team API. Is that possible ? I only can find available methods to read it,
not set it (without writing a new subscriber).

Regards,

Sytze.
Re: Team API for setting SyncInfo [message #290751 is a reply to message #290712] Wed, 31 August 2005 13:15 Go to previous message
Eclipse UserFriend
Originally posted by: Michael_Valenta.oti.com

Sytze,

The only way to change the state of a SyncInfo is to perform an appropriate
team operation on the corresponding file. For instance, for file conflicts
in CVS, the CVS synchronize page offeres a Mark as Merged operation which
updated the file's sync info appropriately. How this is done (or whether it
is even possible) varies from repository to repository. Of course, if you
are using CVS then the SyncInfo is probably an instance of CVSSyncInfo so
you could just cast it and call makeOutgoing which performs the required
operation on the file's meta-data. This isn't API so there are no backwards
compatibility gaurantees but it will do what you want.

Michael

"Sytze van Koningsveld" <sytze.van.koningsveld@nl.compuware.com> wrote in
message news:5687e1162adc040cdc6380aaa99ee030$1@www.eclipse.org...
> Hi all,
>
> I want to set the SyncInfo kind of a resource to SyncInfo.OUTGOING via the
> Team API. Is that possible ? I only can find available methods to read it,
> not set it (without writing a new subscriber).
> Regards,
>
> Sytze.
>
Previous Topic:Headless build, automated Junit tests and code coverage
Next Topic:Opening a file in a TextEditor via FileEditorInput
Goto Forum:
  


Current Time: Fri Apr 26 04:39:14 GMT 2024

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

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

Back to the top