Community
Participate
Working Groups
Select 'Java Conventions(built-in)' in code formatter. Here the max line width is 80. Try to format the following statement. public static final AliasLabelType ALLOWANCE_TAB_COMMAND_DELETE = new AliasLabelType("ALLOWANCE_TAB_COMMAND_DELETE"); The formatter fails to fit the code in 80 columns. This works properly in 2.1.2
This is a known problem that will be investigated post 3.1.
Created attachment 26654 [details] Proposed fix This patch seems to fix this issue. I will do some further testing before releasing it.
Should we use the same option for all assignments (initialization of local variables and field declarations, assignment, compound assignment)? I don't think this should apply to assignment inside annotations, because we might end up with bad line wrapping.
*** Bug 87189 has been marked as a duplicate of this bug. ***
Right now I share the same option. I called it: FORMATTER_ALIGNMENT_FOR_ASSIGNMENT This will be available only at the code level for now. It needs to be added in the code formatter preference page. See bug 108478. Fixed and released in HEAD. Regression tests in org.eclipse.jdt.core.tests.formatter.FormatterRegressionTests.test593/596.
*** Bug 93433 has been marked as a duplicate of this bug. ***
Verified in I20050920-0010 for 3.2M2
*** Bug 63631 has been marked as a duplicate of this bug. ***
*** Bug 124792 has been marked as a duplicate of this bug. ***
*** Bug 90239 has been marked as a duplicate of this bug. ***