[repoView] Show name of checked out tag in repository label
commit752b1417b17bf06bc9f9b9917618a2bb5145e57e
authorKevin Sawicki <kevin@github.com>
Wed, 6 Jun 2012 08:58:17 +0000 (6 10:58 +0200)
committerMatthias Sohn <matthias.sohn@sap.com>
Wed, 6 Jun 2012 08:58:17 +0000 (6 10:58 +0200)
tree5940c09f9ea14f8f2e3db66f8eaf44095a38c920
parentdf6b81f1ad03e83c30e731153091beeeda594091
[repoView] Show name of checked out tag in repository label

Make the project decoration and repository decoration be
consistent when showing a non-symbolic ref.

This moves the logic to compute a short branch string
for a repository to RepositoryUtil to be accessed by
both the decorator for resources and the decorator
for repository view elements.

Updates the following decoration styling:
  * Ref name is now shortened so "refs/tags" prefix is dropped
  * Ref name is shown before abbreviated SHA-1
  * Parentheses have been removed
  * Ellipsis has been removed
  * Single space between ref name and SHA-1

Change-Id: Id8a1b6089763fd17980de7640fd42f14f2d41c2e
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
org.eclipse.egit.core/src/org/eclipse/egit/core/CoreText.java
org.eclipse.egit.core/src/org/eclipse/egit/core/RepositoryUtil.java
org.eclipse.egit.core/src/org/eclipse/egit/core/coretext.properties
org.eclipse.egit.ui/src/org/eclipse/egit/ui/UIText.java
org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/GitLabelProvider.java
org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/decorators/DecoratableResourceHelper.java
org.eclipse.egit.ui/src/org/eclipse/egit/ui/uitext.properties