Enable the text editor toolbar items for DiffEditorPage
commitb5b679b3f5d73e896e306f3ca81aa569a8f2fc1b
authorThomas Wolf <thomas.wolf@paranor.ch>
Sun, 11 Dec 2016 20:39:12 +0000 (11 21:39 +0100)
committerMatthias Sohn <matthias.sohn@sap.com>
Mon, 12 Dec 2016 22:29:09 +0000 (12 23:29 +0100)
treea392d744287ecfbe86e054aed81117538bb5fcf8
parentd7a674e071bd8dfdcfa7110ea54d520ef43ac8be
Enable the text editor toolbar items for DiffEditorPage

A TextEditor provides a couple of items in an action set in the global
Eclipse toolbar: buttons for block selection, word wrap, showing
whitespace, and navigation between annotations. As the DiffEditorPage
is a real TextEditor now, enable those.

* Add an "action set part association" in plugin.xml to get those
  buttons at all when the CommitEditor is active.
* Propagate the global action contributions from the nested editor's
  SubActionBars to those of the CommitEditor.

Change-Id: I516b5609906aefb6840bc9f4f4e95d92fafc1590
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
org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/commit/CommitEditorActionBarContributor.java