[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.tools.jdt] Line wrapping for long field definitions

Hello. I'm encountering a problem getting Eclipse Galileo to wrap Java source lines the way I want.

I'm attempting to keep all Java source lines less than 100 characters. I've configured the maximum line width in Preferences->Java->Code Style->Formatter->Line Wrapping to 100. I've also changed all the statement types in the scrolling list to "Wrap only when necessary". Unfortunately, Eclipse will not wrap lines like this:

private ConcurrentMap<String, ConcurrentMap<XMLGregorianCalendar, SensorData>> source2SensorDatasHash;

(not sure if the newsgroup will wrap that line or not, but it comes to 105 characters)

Even more frustratingly, if I manually add a line break to that line and then Format the file (Source->Format), Eclipse happily rejoins the line for me.

Is there a preference I just haven't found that will allow me to make the Eclipse formatter wrap lines like the one above, or is this really a feature request?

Thanks!