Eclipse does not format this if statement correctly

Posted by Maroloccio on Stack Overflow See other posts from Stack Overflow or by Maroloccio
Published on 2010-04-18T16:18:01Z Indexed on 2010/04/18 16:23 UTC
Read the original article Hit count: 310

Filed under:
|

This should be easy to answer:

I have Eclipse set to wrap Java code over 80 chars to respect my margin.

This code never wraps:

    if (expressionItem.type.isTypeCompatibleWith(containingNameLink.type) == false) {
      reportParsingError("expression type incompatible with containing "
          + "context.");
    }

Question: how do I set my code formatter preferences so that the margin is respected?

© Stack Overflow or respective owner

Related posts about eclipse

Related posts about autoformatting