Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 334980 - [actions] 'Format Element' should work if the selection is on a declaration
Summary: [actions] 'Format Element' should work if the selection is on a declaration
Status: RESOLVED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 3.6   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: 3.7 M7   Edit
Assignee: Dani Megert CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-21 03:39 EST by Dani Megert CLA
Modified: 2011-03-15 12:55 EDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.