Contextual actions in tooltips in staging view
commitbf2d77c236a92cdd8840aa5c9e30cc61d563a9f7
authorThomas Wolf <thomas.wolf@paranor.ch>
Tue, 23 May 2017 09:28:34 +0000 (23 11:28 +0200)
committerMatthias Sohn <matthias.sohn@sap.com>
Tue, 13 Jun 2017 19:08:36 +0000 (13 15:08 -0400)
tree4ab2862b290e6a873d806e7be5aaef965847f963
parent290243625ed389c051fbf8163ac847f109d09bfd
Contextual actions in tooltips in staging view

If there are selected elements in the staged/unstaged viewers,
provide quick access to the "Add to index"/"Remove from index"
actions via a toolbar shown in a tooltip when the mouse pointer
hovers over a selected element.

Also add those actions to the toolbars of the viewers, properly
enabled/disabled depending on whether there is a selection in
the viewer.

Change the unstage icon: "stage" is a green plus sign, but "unstage"
was an inverted "reset" icon. A red minus sign seems to be more
appropriate and less confusing.

Finally, add tooltips to the section headers of the staged and
unstaged viewers with explanations that should make it easier
for people new to git to get what this whole view is about.
(The notion of being able to compose a commit in the git way is
a novelty for many people new to git.)

Bug: 516969
Change-Id: I53f7d460aee079db25b78afd5a818bc7075547ce
Signed-off-by: Thomas Wolf <thomas.wolf@paranor.ch>
icons/org.eclipse.egit.ui/icons/obj16/unstage.svg
org.eclipse.egit.ui/icons/obj16/unstage.png
org.eclipse.egit.ui/icons/obj16/unstage@2x.png
org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/UIIcons.java
org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/UIText.java
org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/staging/StagingView.java
org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/staging/StagingViewTooltips.java [new file with mode: 0644]
org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/uitext.properties