java api auto-resolve conflicts
When you accept change-set in RTC client with a conflict you get this dialog:
Is it possible to present different behavior when using Java API ? I found that in order to use Java API to perform accept you need to use the API: com.ibm.team.filesystem.client.IOperationFactory.getWorkspaceUpdateOperation(WorkspaceUpdateDilemmaHandler dilemmaHandler).
I cannot find the switch which controls this dialog. Debugging the dialog reveals the following parts:
1) Its class name: com.ibm.team.filesystem.ui.changes.dialogs.ConflictsPromptDialog
2) It is being called from com.ibm.team.filesystem.ui.changes.dialogs.ConflictsPromptManager
3) ConflictsPromptManager is created by com.ibm.team.filesystem.ui.changes.views.ChangesViewPage.
4) ChangesViewPage is part of com.ibm.team.filesystem.ui.changes.views.LocalWorkspaceChangesView. This is the pending changes view.
Does this mean that there is no control from WorkspaceUpdateDilemmaHandler on the display of this dialog ?
|
One answer
In your WorkspaceUpdateDilemmaHandler, you have to override isAutoResolveEnabled() method and return false.
Comments
Gidi Gal
commented Apr 04 '19, 5:31 a.m.
I tried that, dialog is still displayed. RTC 6.0.6.1.
That should have worked. Can you post your code?
Gidi Gal
commented Apr 07 '19, 10:07 a.m.
|
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.