Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Wolf2016-12-19 23:42:10 +0000
committerThomas Wolf2016-12-28 13:40:45 +0000
commitc78cc18772708ddd8507726ce0fc574cf540c110 (patch)
tree2d9c268af8f0eef9c32e9a6f2fe203d7d60cfa9c /org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/test/history
parent14f34b4891159b16762adb91fa0b935cef008501 (diff)
downloadegit-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/history')
0 files changed, 0 insertions, 0 deletions

Back to the top