Bug 216180 - [formatter] can't insert newlines after enum elements
Summary: [formatter] can't insert newlines after enum elements
Status: VERIFIED INVALID
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.3   Edit
Hardware: PC Linux-GTK
: P3 normal (vote)
Target Milestone: 3.4 M5   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-01-22 14:43 EST by Adam Kiezun CLA
Modified: 2008-02-04 07:50 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 Adam Kiezun CLA 2008-01-22 14:43:43 EST
eclipse 3.3.0 I20070621-1340

I'd like to create this

enum Name{
  ME("me"),
  YOU("you"); //each on separate line

  private final String str;
  Name(String s){
    str = s;
  }
}

but the formatter is not wrapping the constants correctly and puts all on the same line (It works fine though if the elements do not use constructor parameters)
Comment 1 Adam Kiezun CLA 2008-01-22 14:46:16 EST
closing, after some more time fiddling with the option I found it - you need to check 'force split' (but NOT on the enum declaration but only on enum constants)
Comment 2 Maxime Daniel CLA 2008-02-04 07:50:48 EST
Verified for 34M5 using I20080204-0010 build.