This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 122904 - Support one line enum formatting
Summary: Support one line enum formatting
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-11-27 21:50 UTC by rogier
Modified: 2010-09-23 07:58 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description rogier 2007-11-27 21:50:12 UTC
Hi
when I create a test class:

/**
 *
 * @author Rogier
 */
public class Test {
    public enum TestEnum {Test1, Test2, Test3};
    private TestEnum testEnum;
}

and use "Format" (Alt-Shift-F), I get:

/**
 *
 * @author Rogier
 */
public class Test {

    public enum TestEnum {

        Test1, Test2, Test3
    }

    
    
      ;
    
private TestEnum testEnum;
}

I'd rather keep it like my way....

Thanks!
Comment 1 rogier 2007-11-27 21:50:35 UTC
BTW I used NetBeans 6.0 RC2...
Comment 2 Jiri Prox 2007-11-28 08:16:09 UTC
The formatting will get better when you delete the extra ';' behind  TestEnum declaration (this is already fixed in Dev
version). 

Unfortunately the one line enum formatting is not supported yet. I'll change this issue to ask for it.