Remove the default handler for the checkout command in CommitEditor
commit591b2da171452f29bf2e379a2eb03142cf0a535a
authorThomas Wolf <thomas.wolf@paranor.ch>
Sat, 4 Feb 2017 13:15:50 +0000 (4 14:15 +0100)
committerMatthias Sohn <matthias.sohn@sap.com>
Sun, 5 Feb 2017 14:42:42 +0000 (5 15:42 +0100)
tree27121239b2fba9e931de0208dc5e225d16cdb7b0
parent4d9648d08db5669b7db7d75b50a0a47b2a38ced6
Remove the default handler for the checkout command in CommitEditor

Provide a dedicated handler with an appropriate activeWhen clause
instead. Somehow handler activation expressions are not properly
re-evaluated for these CommitEditor commands; seems to have
something to do with them being used in the header of a
SharedHeaderFormEditor. Add a PartListener to the CommitEditor that
forces an update of the toolbar on activations.

Bug: 495064
Bug: 511635
Change-Id: I8086b4ec328fb6b4eaa63a6f3b68ca0b075c5866
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/commit/CommitEditor.java