Project: JDT
Bug 130469 [typing] 'Correct Identation' strange behaviour
Reported: 2006-03-05 11:07:04 | Status: resolved fixed

For this code 'Source' -> 'Correct Identation' result is ugly and not the same as using 'Source' -> 'Format': // comment JButton button = new JButton("test"); button.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { doSomething(); } });

Files changed in fix:
org.eclipse.jdt.text.tests/src/org/eclipse/jdt/text/tests/JavaHeuristicScannerTest.java org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/JavaIndenter.java