Community
Participate
Working Groups
As an enhancement I would like to see the ability to edit the line wrapping for annotations in the formating. For example @DeclareParents(value = "com.apress.springrecipes.calculator.ArithmeticCalculatorImpl", defaultImpl = MaxCalculatorImpl.class) should be @DeclareParents(value = "com.apress.springrecipes.calculator.ArithmeticCalculatorImpl", defaultImpl = MaxCalculatorImpl.class) It seems that all of the other formatting options are available under "Line Wrapping" except for annotations.
Created attachment 159543 [details] Proposed patch This new patch propose a new formatter option to align annotation arguments (ie. element-value pairs)... Note that this patch also fixes bug 281655 issue as the 'Never join lines' needs an alignment to be activated...
Created attachment 159549 [details] Proposed patch Fix a failing existing test on annotations formatting...
Created attachment 159813 [details] Proposed patch + doc Same patch as previous synchronized with HEAD + an entry in the build notes...
(In reply to comment #3) > Created an attachment (id=159813) [details] > Proposed patch + doc > > Same patch as previous synchronized with HEAD + an entry in the build notes... Released for 3.6M6 in HEAD stream.
Created attachment 159908 [details] Additional patch This patch changes the default value to WRAP_NO_SPLIT in order to avoid breaking current formatter behavior. Hence, to have this new functionality activated, users need to explicitly set the corresponding preferences...
(In reply to comment #5) > Created an attachment (id=159908) [details] > Additional patch > Released for 3.6M6 in HEAD stream.
Verified for 3.6M6 using build I20100305-101
*** Bug 310448 has been marked as a duplicate of this bug. ***
*** Bug 207809 has been marked as a duplicate of this bug. ***