Project: JDT
Bug 334980 [actions] 'Format Element' should work if the selection is on a declaration
Reported: 2011-01-21 03:39:04 | Status: resolved fixed

3.6. 'Format Element' should work if the selection is on a declaration 1. paste: public class Foo { public static void main(String[] args) { System.out.println(); } } 2. select name Foo or main (fully or partially) 3. Source > Format Element ==> nothing happens.

Files changed in fix:
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/JavaEditor.java