Bug 518656

Summary: Position view in compare where the cursor was before
Product: [Eclipse Project] Platform Reporter: David Balažic <david.balazic>
Component: CompareAssignee: Platform-Compare-Inbox <platform-compare-inbox>
Status: NEW --- QA Contact:
Severity: enhancement    
Priority: P3    
Version: 4.6   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description David Balažic CLA 2017-06-22 14:25:21 EDT
When doing a "Compare With / Base Revision" (or similar comparisons) on a large file, it would be nice if the compare editor would position the view at the same position as in the original file, for the case the user is interested in changes in that region of the file.

Example:
 - I open large.txt(has 3000 lines) in a text editor
 - I scroll to line 1900 *
 - I open "Compare With / Base Revision"

Current result:
The compare editor is positioned at the first difference.

Wanted:
The compare editor would be positioned at line 1900

* there are several possibilities to consider as "position" here:
 - take the text cursor position
 - take the spot where the user right clicked (mouse pointer position)
 - take the scroll (view) position of the file
 - take the selection position (if there is any text selected)