Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 334980

Summary: [actions] 'Format Element' should work if the selection is on a declaration
Product: [Eclipse Project] JDT Reporter: Dani Megert <daniel_megert>
Component: TextAssignee: Dani Megert <daniel_megert>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: daniel_megert, raksha.vasisht, rthakkar
Version: 3.6   
Target Milestone: 3.7 M7   
Hardware: All   
OS: All   
Whiteboard:

Description Dani Megert CLA 2011-01-21 03:39:04 EST
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.
Comment 1 Dani Megert CLA 2011-03-15 12:50:22 EDT
Fixed in HEAD (JavaEditor.java, rev. 1.490).
Available in builds >= N20110315-2000.
Comment 2 Dani Megert CLA 2011-03-15 12:55:46 EDT
>Fixed in HEAD (JavaEditor.java, rev. 1.490).
rev. 1.491 that is.