Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Java Formatter help
Java Formatter help [message #835852] Tue, 03 April 2012 19:07 Go to next message
dustin hoffman is currently offline dustin hoffman
Messages: 2
Registered: April 2012
Junior Member
I have the following piece of code.
@Override
public void onChange(ChangeEvent event) {
if (NavigatorConfiguration.this.currentRepoIdx != NavigatorConfiguration.this.repositoryListBox
.getSelectedIndex()) {
NavigatorConfiguration.this.saveButton.setEnabled(true);
}
}

I am trying to get the Java formatter to format this under 90 characters, but I cannot get it to do so..
Re: Java Formatter help [message #837000 is a reply to message #835852] Thu, 05 April 2012 06:27 Go to previous messageGo to next message
Satyam Kandula is currently offline Satyam Kandula
Messages: 444
Registered: July 2009
Senior Member
What are you expecting and what is not happening?
BTW, If you don't like formatting for a region of code, you could turn off using Off/On Tags.
Re: Java Formatter help [message #837265 is a reply to message #837000] Thu, 05 April 2012 13:06 Go to previous messageGo to next message
dustin hoffman is currently offline dustin hoffman
Messages: 2
Registered: April 2012
Junior Member
I wanted it to break the if conditional. That is the piece of that is longer than the line limit. I don't care how it breaks it, but I was hoping it could.
Re: Java Formatter help [message #841579 is a reply to message #837265] Wed, 11 April 2012 13:48 Go to previous message
Satyam Kandula is currently offline Satyam Kandula
Messages: 444
Registered: July 2009
Senior Member
If you notice it does wrap at the method call but probably not at the place you are expecting. I think https://bugs.eclipse.org/bugs/show_bug.cgi?id=303519 should take care of this issue.
Previous Topic:Class files in exported EJB jar file
Next Topic:eclipse does not generate .class files
Goto Forum:
  


Current Time: Thu Oct 23 04:04:11 GMT 2014

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

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