Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

getComponentSyncContexts

Hello to the forum members,
I am working with the following API:
IComponentSyncContext[] com.ibm.team.filesystem.rcp.core.internal.changes.model.IComponentSyncModel.getComponentSyncContexts(IConnection wc, IComponentHandle component)

Please comment if you know how to create a workspace configuration that will cause this API to return an array with size > 1.

Many thanks,
Gidi


1

0 votes

Comments

Hello Shashikant,

I am using this API to get information on IShareable elements regarding their status in the pending changes view:
- Are they unresolved ?
- Are they in incoming\outgoing change-set ?
- Are they in conflict ? Do they need merge ?

Is there an alternative API to answer these questions ?

Thanks,
Gidi

1 vote

 If you have IShareable then you should be able to get the type of change using IShareable#getChange method which returns ILocalChange and you can use ILocalChange#getType method to get the type.


If you do not have a IShareable, then you can call ISharingManager#findShareables method.

For incoming/outgoing change sets, call IWorkspaceConnection#compareTo() which returns an IChangeHistorySyncReport and use IChangeHistorySyncReport#incomingChangeSets/outgoingChangeSets.

Use IWorkspaceConnection#conflictReport method to get all the outstanding merge conflicts.

1 vote

Thanks Shashikant,I will try this API.


Accepted answer

Permanent link

 This api is internal and should not be used by clients. If you provide us with the scenario we could suggest an alternative.

Gidi Gal selected this answer as the correct answer

1 vote

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,944
× 1,204

Question asked: Aug 30 '17, 10:21 p.m.

Question was seen: 1,787 times

Last updated: Aug 31 '17, 4:59 a.m.

Confirmation Cancel Confirm