Bug 410793 - [Formatter] smarter wrapping on chained feature calls.
Summary: [Formatter] smarter wrapping on chained feature calls.
Status: NEW
Alias: None
Product: Xtend
Classification: Tools
Component: Core (show other bugs)
Version: 2.4.2   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-06-14 05:21 EDT by Stefan Oehme CLA
Modified: 2013-08-26 05:15 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stefan Oehme CLA 2013-06-14 05:21:38 EDT
The formatter usually does a very good job. But sometimes the line wraps can be at awkward places. Like this:

myList.filter[someExpression].map[some long
expression].forEach[doStuff]

Where I would rather like

myList.filter[someExpression]
.map[some long expression]
.forEach[doStuff]

But if I manually improve the line wraps, the formatter just overrides it on the next run. 

The JDT has an option to "Never join already wrapped lines", which I would like to see in Xtend too.
Comment 1 Sven Efftinge CLA 2013-06-17 07:19:25 EDT
I have moved the feature request bit to a dedicated bug #410907