diff options
author | Thomas Wolf | 2016-12-19 23:42:10 +0000 |
---|---|---|
committer | Thomas Wolf | 2016-12-28 13:40:45 +0000 |
commit | c78cc18772708ddd8507726ce0fc574cf540c110 (patch) | |
tree | 2d9c268af8f0eef9c32e9a6f2fe203d7d60cfa9c /org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/test/trace | |
parent | 14f34b4891159b16762adb91fa0b935cef008501 (diff) | |
download | egit-c78cc18772708ddd8507726ce0fc574cf540c110.tar.gz egit-c78cc18772708ddd8507726ce0fc574cf540c110.tar.xz egit-c78cc18772708ddd8507726ce0fc574cf540c110.zip |
Display logical line numbers in DiffEditorPage
Give the DiffEditorPage a special LineNumberRulerColumn that can
display logical line numbers of the shown hunk lines, corresponding
to the line numbers in changed file versions.
The ruler menu has a toggle action to switch between this logical
display and the normal physical line number display.
* Store the line numbers in the DiffRegions produced by the
DiffRegionFormatter. Add a CONTEXT DiffRegion.Type to be able to
number context lines.
* Introduce a LogicalLineNumberProvider.
* Add a LogicalLineNumberRulerColumn that uses such a provider to
determine line numbers for a diff side.
* Add a composite OldNewLogicalLineNumberRulerColumn that groups two
such LogicalLineNumberRulerColumns (one for each side) together, and
that contains the toggling logic for physical/logical line number
display.
Change-Id: I53394854523d15187c21786ca54370561d84642d
Signed-off-by: Thomas Wolf <thomas.wolf@paranor.ch>
Diffstat (limited to 'org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/test/trace')
0 files changed, 0 insertions, 0 deletions