Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Java Code Formatter wierdness (using the two bundled configurations)
Java Code Formatter wierdness (using the two bundled configurations) [message #244547] Mon, 24 May 2004 20:15
Eclipse UserFriend
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.


Previous Topic:Javadoc view and html widget (linux gtk eclipse M9)
Next Topic:Problems with earlyStartup.
Goto Forum:
  


Current Time: Sat Jul 19 14:44:30 EDT 2025

Powered by FUDForum. Page generated in 0.05451 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top