Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 367228

Summary: [projection] When expanding-all code, the cursor often moves off the screen
Product: [Eclipse Project] JDT Reporter: Nathan Reynolds <numeralnathan>
Component: TextAssignee: JDT-Text-Inbox <jdt-text-inbox>
Status: CLOSED DUPLICATE QA Contact:
Severity: enhancement    
Priority: P3 CC: deepakazad
Version: 3.8Keywords: needinfo
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Nathan Reynolds CLA 2011-12-20 12:46:33 EST
Build Identifier: 20110916-0149

Bug 232939 is for C++ code.  Please do the same in Java code.

Reproducible: Always
Comment 1 Deepak Azad CLA 2011-12-20 14:08:29 EST
I cannot reproduce the caret moving around behavior in Java editor. Can you please provide the exact steps to reproduce?
Comment 2 Nathan Reynolds CLA 2011-12-20 14:41:03 EST
1. Open a Java file with more lines that can fit on the screen when fully expanded (e.g. 100+ lines).
2. Right-click in the gutter and select Folding | Collapse All.
3. Put the cursor at the very bottom of the file.
4. Right-click in the gutter and select Folding | Expand All.
5. Notice that the line with the cursor is no where to be found on the screen.
6. Notice that if you press the up arrow, the line scrolls into view.
Comment 3 Deepak Azad CLA 2011-12-20 14:56:45 EST
Thanks Nathan! I can reproduce now. 

This looks like [duplicate of/similar to] bug 96953.
Comment 4 Nathan Reynolds CLA 2011-12-20 15:25:27 EST

*** This bug has been marked as a duplicate of bug 96953 ***