New Formatter - Assignment statements [message #159476] |
Wed, 19 May 2004 11:24 |
Eclipse User |
|
|
|
Can someone help? I'm running the latest Integration build and cannot
get the formatter to format the following:
This is what I get with preferences set to (array initalizers - Wrap
only when necessary & indent by one)
private static final KeyWord keyWords[] = { new KeyWord( "start"
) {
public void
doKeyWord()
throws Exception {
doStart();
}
}, new KeyWord( "end" ) {
public void
doKeyWord()
throws Exception {
doEnd();
}
}, new KeyWord( "connect"
) {
public void
doKeyWord()
throws Exception {
doConnect();
}
}, };
I want to get something like the following - anything close would be OK
:
private static final KeyWord keyWords[] =
{ new KeyWord( "start" ) {
public void doKeyWord()throws Exception {
doStart(); } },
new KeyWord( "end" ) {
public void doKeyWord() throws Exception {
doEnd(); } },
new KeyWord( "connect" ) {
public void doKeyWord() throws Exception {
doConnect();} }
};
Is there another option I need to be using?
|
|
|
Powered by
FUDForum. Page generated in 0.03899 seconds