Bug 3276 - DCR: (LOW) Formatter option to not indent methods (1GE39ZO)
Summary: DCR: (LOW) Formatter option to not indent methods (1GE39ZO)
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.0   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: 3.0 M4   Edit
Assignee: Olivier Thomann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 10607 10859 25103 (view as bug list)
Depends on:
Blocks:
 
Reported: 2001-10-10 22:52 EDT by Philipe Mulet CLA
Modified: 2005-10-12 13:47 EDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Philipe Mulet CLA 2001-10-10 22:52:26 EDT
JW (5/21/2001 1:37:34 PM) 108
	To save screen space, some developers don't want to indent their method bodies.
	This could be a useful option (in the future).
Comment 1 Philipe Mulet CLA 2001-11-19 16:45:23 EST
Defer
Comment 2 Philipe Mulet CLA 2002-07-25 06:30:52 EDT
Resurrecting formatter issues in 2.1 stream.
Comment 3 Philipe Mulet CLA 2002-07-25 06:32:41 EDT
Clearing resolution
Comment 4 Olivier Thomann CLA 2002-07-30 13:48:01 EDT
*** Bug 10607 has been marked as a duplicate of this bug. ***
Comment 5 Olivier Thomann CLA 2002-07-30 13:49:00 EDT
*** Bug 10859 has been marked as a duplicate of this bug. ***
Comment 6 Olivier Thomann CLA 2002-10-22 08:25:12 EDT
*** Bug 25103 has been marked as a duplicate of this bug. ***
Comment 7 Olivier Thomann CLA 2003-01-15 13:23:10 EST
We need to clear 2.1 bug reports that won't be addressed before 2.1. The new 
implementation is still in the works. Therefore we cannot include it for 2.1. 
Not enough testing and we need to polish the preferences. This will be address 
for 2.2 as stated in the JDT/Core plan.
Comment 8 Philipe Mulet CLA 2003-06-12 06:36:08 EDT
Resurrecting for 3.0
Comment 9 Olivier Thomann CLA 2003-06-12 15:57:54 EDT
Reopen for 3.0 consideration.
Comment 10 Olivier Thomann CLA 2003-10-03 09:04:50 EDT
This is addressed in the new formatter.
Fixed and released in HEAD.
Regression test added.
Comment 11 David Audel CLA 2003-10-13 09:11:10 EDT
Verified.
Comment 12 Randy Hudson CLA 2005-10-12 13:47:08 EDT
Out of those who requested this, is there anyone who also wanted for nested
types to not have their members indented? My opinion is that the entire class
formatting should have 1 less TAB everywhere, and not that nested classes should
also be non-indented. Here is how I like my indentation:

public class Outer {

public static void main(String arg[]) {
    blah = new Blah();
    blah.addListener(new Listener() {
        public void notify() {
            //do something
        }
    };
}

static class Nested {
    int x;
    int y;
}

}

See also bug 63900. My feeling is that original request was slightly mistated,
but maybe I'm wrong and there are those who don't want nested classes indented
either, thus requiring a 3rd type of indentation described in my other bug.