Community
Participate
Working Groups
Build Identifier: 20120614-1722 If some portion of the code is collapsed at the beginning of a document and the viewer is scrolled past it, Eclipse will not restore the right position of the viewer after eclipse is closed and reopened again. Reproducible: Always Steps to Reproduce: 1. Open some editor with foldable content. 2. Create some folding at the beginning of the file. (E.g. lines 2-10) 3. Collapse this folding. 4. Scroll down so the folding is not visible any more. (E.g. line 12 is the top line) 5. Close Eclipse. 6. Reopen Eclipse. What happens: The editor has some smaller top line (e.g. top line is line 5) than before. What one would expect to happen: Eclipse usually restores the editor just the way I left it. (Which is great, by the way.) So I woul expect the editor to have line 12 as the top line, regardless of whether the folding from line 2 to 10 is collapsed or not.
*** This bug has been marked as a duplicate of bug 375576 ***
Created attachment 218223 [details] The source file used to demostrate the bug.
Created attachment 218224 [details] First Screenshot I do not believe this bug to be a duplicate of the cited bug. I hope the attached screenshots together with my comments explain my point: 1. I open the attached file "ProjectionBug.java". 2. I collapse the first comment regardin the class, which says "Long Comment..." 3. I scroll down one step, so the top line in my editor is line 61. (See first screenshot) 4. I close Eclipse and open it again. 5. Result: The collapsed folding of the first comment is expanded (this is okay) and the editor's first line is 4 (this is not okay). (See second screenshot) Also this bug is reproducable in Eclipse 3.7 and bug 375576 was introduced in 4.2.
Created attachment 218225 [details] Second Screenshot
Sorry for the misuse of Bugzilla, but apparently I am too stupid to attach three files to a comment. The comment was: I do not believe this bug to be a duplicate of the cited bug. I hope the attached screenshots together with my comments explain my point: 1. I open the attached file "ProjectionBug.java". 2. I collapse the first comment regardin the class, which says "Long Comment..." 3. I scroll down one step, so the top line in my editor is line 61. (See first screenshot) 4. I close Eclipse and open it again. 5. Result: The collapsed folding of the first comment is expanded (this is okay) and the editor's first line is 4 (this is not okay). (See second screenshot) Also this bug is reproducable in Eclipse 3.7 whereas bug 375576 was introduced in 4.2.
> I do not believe this bug to be a duplicate of the cited bug. Indeed. The bug happens when the folding in the file doesn't match the default folding when an editor is opened.
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. As such, we're closing this bug. If you have further information on the current state of the bug, please add it and reopen this bug. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant. -- The automated Eclipse Genie.