Community
Participate
Working Groups
Integration build: Jan. 8 Paste the following into a java editor, right-click -> Format. The trailing "}" of the empty inner class is indented incorrectly. My formatting preferences are all the defaults. package grant; import org.eclipse.swt.widgets.*; import org.eclipse.swt.*; import org.eclipse.swt.events.*; import org.eclipse.swt.graphics.*; import org.eclipse.swt.layout.*; import org.eclipse.swt.custom.*; public class FormatterProblem { public static void main(String args[]) { new FormatterProblem().buildGUI(); } private void buildGUI() { Shell shell = new Shell(); final Display d = shell.getDisplay(); shell.setBounds(100, 100, 300, 100); shell.setLayout(new GridLayout()); Composite buttonGroup = new Composite(shell, SWT.BORDER); buttonGroup.setLayout(new GridLayout()); buttonGroup.setLayoutData(new GridData()); final Button addButton = new Button(buttonGroup, SWT.PUSH); addButton.setLayoutData(new GridData()); SelectionAdapter buttonSelection = new SelectionAdapter() { //.... }; addButton.addSelectionListener(buttonSelection); shell.open(); while (!shell.isDisposed()) { if (!d.readAndDispatch()) d.sleep(); } } }
Formatter issues will be reconsidered post 2.0
Resurrecting formatter issues in 2.1 stream.
Clearing resolution
We need to clear 2.1 bug reports that won't be addressed before 2.1. The new implementation is still in the works. Therefore we cannot include it for 2.1. Not enough testing and we need to polish the preferences. This will be address for 2.2 as stated in the JDT/Core plan.
Resurrecting for 3.0
Resurrecting
This is addressed in the new formatter. Fixed and released in HEAD. Regression test added.
Verified.