Get the Component name from Changeset
Hello,
I have a Componetn associated to changeset. Now I need to get the Component name from the changeset not the .getItemId() I have managed to fetch the IComponentHandle object. I have been searching for a way to get the Component name from IComponentHandle. ... Can you help me into that ! IComponentHandle component = changeSet.getComponent(); IConfiguration configuration = workspaceConnection.configuration(component); Thanks in advance, |
Accepted answer
You should be able to use the IRepositoryItemService to get the IComponent object. From there you can get the name. Hope this helps.
IRepositoryItemService fRepositoryItemService = getService(IRepositoryItemService.class); Fatla 777 selected this answer as the correct answer
|
One other answer
IProgressMonitor monitor;
IComponent component = (IComponent) repository.itemManager().fetchCompleteItem(componentHandle, IItemManager.DEFAULT, monitor);
component.getName() |
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.