Remove defaultHandlers for CommitEditor commands
commit6c1191dbf2da75f92b0d75d7bdb7124956729144
authorThomas Wolf <thomas.wolf@paranor.ch>
Mon, 15 May 2017 18:40:37 +0000 (15 20:40 +0200)
committerThomas Wolf <thomas.wolf@paranor.ch>
Thu, 18 May 2017 07:52:53 +0000 (18 09:52 +0200)
treedd3e6167b7298a6b701bb3c053209c738b269543
parent5ad9f043e8769694484c044e92d642912afabee0
Remove defaultHandlers for CommitEditor commands

Provide dedicated handlers with an appropriate activation expression
instead. The commands work for one or several RepositoryCommits. The
expression must not refer to the active part since these commands can
be invoked from either the CommitEditor or the GitHistoryPage.

In the CommitEditor, use intermediary actions for the toolbar
contributions to avoid enablement problems (see bug 516679).

Bug: 495064
Change-Id: I0297a4ef6cf37b1662181570fad9a1fdecaed33d
Signed-off-by: Thomas Wolf <thomas.wolf@paranor.ch>
org.eclipse.egit.ui/plugin.xml
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/commit/CommitEditor.java
org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/commit/command/StashDropHandler.java
org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/uitext.properties