[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
|
[news.eclipse.platform] Re: Team API for setting SyncInfo
|
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@xxxxxxxxxxxxxxxx> wrote in
message news:5687e1162adc040cdc6380aaa99ee030$1@xxxxxxxxxxxxxxxxxx
> 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.
>