Java Code Formatter wierdness (using the two bundled configurations) [message #244547] |
Mon, 24 May 2004 20:15 |
Eclipse User |
|
|
|
When the following code is indented a few levels, the formatter starts
freaking out:
_model.setCategory(IMapConstants.WIDGET_TYPE_VALUES[IMapCons tants.SUMMARY_WI
DGET]);
The code was looking like this before format:
<sp><sp><sp><sp><sp><sp><sp><sp><sp><sp><sp><sp><sp ><sp><sp><sp>_model.setCa
tegory(IMapConstants.WIDGET_TYPE_VALUES[IMapConstants.SUMMAR Y_WIDGET]);
And after format, it looked like this
<sp><sp><sp><sp><sp><sp><sp><sp><sp><sp><sp><sp><sp ><sp><sp><sp>_model
<sp><sp><sp><sp><sp><sp><sp><sp><sp><sp><sp><sp><sp ><sp><sp><sp><sp><sp><sp>
<sp><sp><sp><sp><sp>.setCategory(IMapConstants.WIDGET_TYPE_VALUES[IMapConsta
nts.SUMMARY_WIDGET]);
I've attached a standalone Java file that you can load into Eclipse and run
the formatter on.
|
|
|
Powered by
FUDForum. Page generated in 0.05451 seconds