Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » New Formatter - Assignment statements
New Formatter - Assignment statements [message #159476] Wed, 19 May 2004 11:24
Eclipse UserFriend
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?
Previous Topic:Can't create project with overlapping directories and CVS
Next Topic:[JDT Debug] bug no 50531
Goto Forum:
  


Current Time: Sun Jul 27 01:51:45 EDT 2025

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

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

Back to the top