Never

Lets you disable line wrapping for certain elements.

Figure 2.39. Wrapping Never settings page

Wrapping Never settings page
Chained method calls

Lets you specify whether wrapping along the dots of chained method calls should be disabled.

Since 1.0

Example 2.558. Wrapped chained method call

message.format(ERROR_SOURCE_ADDRESS)
       .param(m_session.getAimName())
       .send();

Example 2.559. Chained method call (wrapping disabled)

message.format(ERROR_SOURCE_ADDRESS).param(
    m_session.getAimName()).send();

Note how in the above example, wrapping does not occur along the dots of the chained method call, but after the left parenthesis!

Chained index operators

Lets you specify whether wrapping along the dots of chained index operators should be disabled.

Since 1.0

Example 2.560. Wrapped index operator

String value = objects[i].names[j]
    .first[k];

Example 2.561. Index operator (wrapping disabled)

String value =
    objects[i].names[j].first[k];

Note how in the above example wrapping does not occur along the dots of the index operator, but right after the assignment!

Qualifiers

Lets you specify whether wrapping along the dots of qualifiers should be disabled.

Since 1.0

Example 2.562. Wrapped qualifier

com.company.project
.MethodName.methodCall();

Example 2.563. Qualifier (wrapping disabled)

com.company.project.MethodName
.methodCall();

Note how in the above example, wrapping does not occur along the dots of the qualifier, but before the method call!

Dotted expression

Lets you specify whether wrapping along dotted expressions should be disabled. This option covers all dotted expressions not handled by the more specific options for chained method calls, index operators or qualifiers (see above).

The option is enabled by default for compatibility reasons. If you're serious about the maximal line length limit, we recommend to disable the option.

Since 1.5

Example 2.564. Wrapped dotted expression

boolean test = ((com.foo.highfly.test.internal.Foo) container)     |
    .transportDebugFlag;                                           |
                                                                   |

Example 2.565. Dotted expression (wrapping disabled)

boolean test =                                                     |
    ((com.foo.highfly.test.internal.Foo) container).transportDebugFlag;
                                                                   |