Turn the DiffEditorPage into a real TextEditor
This enables many standard text editor actions like "Find" or
"Go to line".
There should be no visual changes except:
* The diff page behaves generally like a real read-only text editor,
including global contributions to menus, toolbars, the status line,
and so on. The line number ruler is now provided by the text editor
and can be toggled. And if the diff show multiple files, there's even
folding.
* The context menu is now a standard extensible text editor context
menu that may get contributions. It also provides access to the text
editor preferences.
Code changes:
* DiffViewer simplified. In particular removed a number of things from
the constructor that are now provided by the standard text editor
framework. (Line numbers, highlighting current line, configuration).
* CommitEditor: give it an IEditorActionBarContributor to manage
contributions of nested text editors.
* Make HyperlinkSourceViewer a ProjectionViewer to get folding support
in the editor.
* Rewrite DiffEditorPage to be a TextEditor.
* Add "Show In..." support.
Change-Id: Ic9f2ad74f50e92d9c93d4cfd04273c12b741b284
Signed-off-by: Thomas Wolf <thomas.wolf@paranor.ch>
12 files changed: