How Can i fetch Basline Name from the Change set
Saritha Yadav (13●4)
| asked Jul 31 '15, 6:26 a.m.
edited Jul 31 '15, 6:29 a.m. by Ralph Schoon (63.3k●3●36●46)
Currently im developing a server side plugin and i can fetch the Changesets and Component Handle.
IComponentHandle cHandle = changeSet.getComponent(); IComponent component= (IComponent) repositoryItemService.fetchItem(componentHandle, IRepositoryItemService.COMPLETE); but how can i fetch the Baseline Name? I have tried by using IBaselineHandle but im getting an exception IBaselineHandle baselineHandle = (IBaselineHandle) link.getSourceRef().resolve(); |
Accepted answer
Ralph Schoon (63.3k●3●36●46)
| answered Jul 31 '15, 6:41 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER edited Jul 31 '15, 6:42 a.m.
IBaselineConnection.setName(name, monitor)
IBaselineConnection.getName(name, monitor) To get the IBaselineConnection from the handle use IWorkspaceManager.getBaselineConnection(). Saritha Yadav selected this answer as the correct answer
|
One other answer
|
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.