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

How Can i fetch Basline Name from the Change set

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();

0 votes


Accepted answer

Permanent link
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

0 votes


One other answer

Permanent link
Thanks Ralph

0 votes

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,938

Question asked: Jul 31 '15, 6:26 a.m.

Question was seen: 2,184 times

Last updated: Jul 31 '15, 6:57 a.m.

Confirmation Cancel Confirm