Bug 47802 - New Code Formatter: NEXT_PER_LINE_SPLIT
Summary: New Code Formatter: NEXT_PER_LINE_SPLIT
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.0 M6   Edit
Assignee: Olivier Thomann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-12-01 09:35 EST by Silvio Böhler CLA
Modified: 2003-12-17 06:20 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Silvio Böhler CLA 2003-12-01 09:35:18 EST
In my understanding, this should leave the first element on the same line it was
written, whereas all the remaining elements are distributed one per line. 

But this behaviour is only achievable if INDENT_ON_COLUMNS is selected. If
either NO_ALIGNMENT or INDENT_BY_ONE is enabled, NEXT_PER_LINE_SPLIT behaves
exactly as ONE_PER_LINE_SPLIT. 

It should always keep the first element on the same line, and only do "one per
line" for the remaining elements.
Comment 1 Olivier Thomann CLA 2003-12-01 11:55:09 EST
NO_ALIGNMENT should not be combined with any other settings for an alignment.
This should only be used to disable a specific line split.
Comment 2 Olivier Thomann CLA 2003-12-01 12:24:57 EST
Indeeed, NEXT_PER_LINE_SPLIT was doing too much.
Now it should behaves as expected.
Fixed and released in HEAD.
Regression tests added.
Comment 3 David Audel CLA 2003-12-17 06:20:22 EST
Verified for  3.0M6