Slick V3.3 manual 250

Models: V3.3

1 568
Download 568 pages 2.03 Kb
Page 272
Image 272

Java Formatting Options

Use continuation indent on function parameters - Determines whether function parameters should always use the continuation indent.

By default, we format multi-line function parameters as follows:

myLongMethodName(firstarg,

secondarg, thirdarg ); myLongMethodName(

firstarg,

new ActionListener() {

public void actionPerformed(ActionEvent e) { createdButtonFired(buttonIndex);

}

}, thirdarg

);

myLongMethodName(new ActionListener() { // special case anonymous class first argument

public void actionPerformed(ActionEvent e) { createdButtonFired(buttonIndex);

}

},

secondarg, thirdarg );

myLongMethodName(

secondarg,

new ActionListener() {

public void actionPerformed(ActionEvent e) { createdButtonFired(buttonIndex);

}

}, thirdarg );

If Use continuation indent on function parameters is selected, the format will change as follows:

myLongMethodName(firstarg,

secondarg, thirdarg );

myLongMethodName(

firstarg,

new ActionListener() {

public void actionPerformed(ActionEvent e) { createdButtonFired(buttonIndex);

250

Page 272
Image 272
Slick V3.3 manual 250