Bug 6487 - Stay on or near current line after running Code Formatter
Summary: Stay on or near current line after running Code Formatter
Status: RESOLVED DUPLICATE of bug 4071
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 2.0   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Claude Knaus CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 6578 (view as bug list)
Depends on:
Blocks:
 
Reported: 2001-11-30 16:21 EST by Patrick Smith CLA
Modified: 2002-02-06 10:37 EST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Patrick Smith CLA 2001-11-30 16:21:05 EST
[using Eclipse 20011107]

If I have "Show source of selected element only" selected, once I run the code 
formatter, the cursor is moved to the beginning of the method. This is 
tolerable, if the method is not too long.

If I have "Show complete source" selected, once I run the code formatter, the 
cursor is moved to the beginning of the class.

I would be happier if my current view of my class didn't scroll all the way to 
the top [either of the class or the method]. I think it would be better if the 
top line showing in the editor before the formatting is the same line [give or 
take the formatting of that line itself] showing at the top of the editor 
afterwards.
Comment 1 Tod Creasey CLA 2001-12-07 08:59:28 EST
*** Bug 6578 has been marked as a duplicate of this bug. ***
Comment 2 Martin Möbius CLA 2002-01-09 07:42:52 EST
7215 adresses similar problems. 
Makes nice workaround possible, as cursor stays at old position.
Fomrat your code,move cursor with up,down keys results in moving the editor to 
old viewposition. ok not exactly
Comment 3 Kai-Uwe Maetzel CLA 2002-02-06 06:40:33 EST
Pls close if already properly fixed.
Comment 4 Claude Knaus CLA 2002-02-06 10:37:14 EST

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