Bug 133024 - [ast rewrite] ASTRewrite does not honor forced line splits
Summary: [ast rewrite] ASTRewrite does not honor forced line splits
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.1.2   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.3 M1   Edit
Assignee: Martin Aeschlimann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 141500 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-03-23 12:12 EST by Miroslav Halas CLA
Modified: 2006-08-22 03:35 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Miroslav Halas CLA 2006-03-23 12:12:30 EST
I have my formatter setup to format parameters on a new line such as

public MyClass(
   int    param1,
   String param2,
   long   param3
)
{
}

When I execute Generate Constructor using fields ... it generated constructor with parameters on a single line. If I then execute Source -> Format Element if formats the parameters correctly.
Comment 1 Tobias Widmer CLA 2006-04-20 04:38:15 EDT
We are taking the correct project settings. The bug is a current limitation of ASTRewrite, which does not support forced line splits yet. The problem is the context dependent indentation needed to correctly format such scenarios.

To reproduce, set the line wrapping policy for parameters in method declarations to wrap all elements, every element on a new line
Comment 2 Martin Aeschlimann CLA 2006-07-28 05:52:26 EDT
fixed > 20060728
Comment 3 Frederic Fusier CLA 2006-08-03 08:49:06 EDT
Released for 3.3 M1
Comment 4 Frederic Fusier CLA 2006-08-07 11:49:59 EDT
Verified for 3.3 M1 using build I20060807-0010.

However, I was not able to reproduce with 3.2 build...
Comment 5 Martin Aeschlimann CLA 2006-08-22 03:35:00 EDT
*** Bug 141500 has been marked as a duplicate of this bug. ***