Summary: | [formatter] Java Annotations not formatted correctly | ||||||
---|---|---|---|---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Andrew Heron <andrew.heron> | ||||
Component: | Core | Assignee: | Frederic Fusier <frederic_fusier> | ||||
Status: | VERIFIED DUPLICATE | QA Contact: | |||||
Severity: | normal | ||||||
Priority: | P3 | CC: | markus.kell.r, Olivier_Thomann, srikanth_sankaran | ||||
Version: | 3.4.1 | ||||||
Target Milestone: | 3.5 M4 | ||||||
Hardware: | PC | ||||||
OS: | Windows XP | ||||||
Whiteboard: | |||||||
Attachments: |
|
Description
Andrew Heron
2009-02-17 13:07:27 EST
Using Eclipse [built-in] profile, the formatter output does not break the formatting of your snippet, it just indent the lines and replace the spaces with tabulations. Could you provide your profile and the corresponding formatter output showing that the formatting is lost? Thanks Created attachment 126009 [details]
Formatter Preferences
The attached preferences changes my code to
@ManyToOne
@JoinColumns ( {@JoinColumn (name = "join1", referencedColumnName = "column1"), @JoinColumn (name = "join2", referencedColumnName = "column2")})
I think the 'Never join lines' would fix your problem (you'll find it on the 'Line Wrapping' preferences tab. Using it on top of your profile, I get the following output for the comment 0 snippet: @ManyToOne @JoinColumns ({ @JoinColumn (name = "join1", referencedColumnName = "column1"), @JoinColumn (name = "join2", referencedColumnName = "column2")}) private String foo; So, I set this bug as duplicate of bug 198074, please reopen if you disagree, thx *** This bug has been marked as a duplicate of bug 198074 *** Verified for 3.6M1 using I20090803-1800 Verified. |