If you have:
IProgressMonitor monitor;
ITeamRepository repository;
You can use:
IComponentHandle componentHandle= changeSet.getComponent();
IComponent component = (IComponent) repository.itemManager().fetchCompleteItem(componentHandle, IItemManager.DEFAULT, monitor);
To get the component and use:
component.getName()