how to get the author/creator of a certain IResource?
![]()
Hi,
How to get the author/creator of a certain IResource in Jazz? For example, when clicking an element in the package explorer, it displays its corresponding last author/creator. |
One answer
![]() How to get the author/creator of a certain IResource in Jazz? For Try: IShareable shareable = (IShareable)resource.getAdapter(IShareable.class); ISharingDescriptor desc = shareable.getShare().getSharingDescriptor(); ITeamRepository repo = RepositoryUtils.getTeamRepository (desc.getRepositoryUri(), desc.getRepositoryId()); return SCMPlatform.getWorkspaceManager(repo).versionableManager ().fetchCompleteState(shareable.getRemote(), monitor).getModifiedBy(); - Dmitry |