Get data displayed in Pending changes view via API
Hello,
I'm trying to gather all API required to find about status of a file in Pending changes view:
1) Is it unresolved ? I understand ILocalChangeManager is the required API.
https://jazz.net/forum/questions/44421/api-to-determine-local-not-checked-in-changes
2) Does it collide with incoming change-set or already require merge ?
3) Is it in incoming change-set ?
4) Is it in outgoing change-set ?
5) Is it locked ?
Also, I'd like to listen to events that change this status, if you have pointers for relevant listeners (currently I know of IConfigurationUpdateEvent.CONFIGURATION_UPDATED, It does not cover all the scenarios) it would be great if you can share them here.
Thanks,
Gidi
I'm trying to gather all API required to find about status of a file in Pending changes view:
1) Is it unresolved ? I understand ILocalChangeManager is the required API.
https://jazz.net/forum/questions/44421/api-to-determine-local-not-checked-in-changes
2) Does it collide with incoming change-set or already require merge ?
3) Is it in incoming change-set ?
4) Is it in outgoing change-set ?
5) Is it locked ?
Also, I'd like to listen to events that change this status, if you have pointers for relevant listeners (currently I know of IConfigurationUpdateEvent.CONFIGURATION_UPDATED, It does not cover all the scenarios) it would be great if you can share them here.
Thanks,
Gidi
Accepted answer
Note: Most of the SCM client side code is not considered API and is internal. Take a look through the 'com.ibm.team.filesystem.client' package to get an idea of some of the things that are available to you.
The Pending Changes view and most of the 'things' it uses is also internal. You could use some of it, but keep in mind it is subject to change with any release, or you could take a look at the code for ideas.
The Pending Changes view model is ComponentSyncModel, and a particular component node in the PC view is a ComponentSyncContext. The PC view listens to many events in a class called EventManager (ex: Events in IFlowNodeConnection, IChangeHistoryEvent, IActiveWorkspaceManager, etc.). Logic related to locked files is managed in UserLockCacheManager and UserLockCache.
Comments
showing 5 of 6
show 1 more comments