Improve label of index version in compare editors
commit56eb69bcb21faa7cbaee03d363e110483c0b839f
authorRobin Stocker <robin@nibor.org>
Sat, 19 Jan 2013 12:35:44 +0000 (19 13:35 +0100)
committerMatthias Sohn <matthias.sohn@sap.com>
Mon, 15 Apr 2013 21:34:53 +0000 (15 23:34 +0200)
treef6468e89c9440f44eaec62c3181ec1f609cf32a2
parent3535a3e37bca6fee8f69c4d4592d7895f6d08db7
Improve label of index version in compare editors

When opening the compare editor from the staging view for an unstaged
file, the right side shows the Index version.

The problem is that not many people discover that it is in fact editable
(and the way to do partial staging).

This change tries to help a bit by changing the label from

  file.txt Index ()

to

  Index: file.txt (editable)

Index is used as a prefix because the left side is "Local: file.txt".

"(editable)" is not appended in case of non-editable (stage != 0), see
bug 391856.

Bug: 398562
Change-Id: I9940d2f148393b1f4704664e379c5c863565a118
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
org.eclipse.egit.core/src/org/eclipse/egit/core/internal/storage/IndexFileRevision.java
org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/GitCompareFileRevisionEditorInput.java
org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/UIText.java
org.eclipse.egit.ui/src/org/eclipse/egit/ui/uitext.properties