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

Bug 138874

Summary: [ast rewrite] wrong formatting after remove brackets
Product: [Eclipse Project] JDT Reporter: Benno Baumgartner <benno.baumgartner>
Component: CoreAssignee: David Audel <david_audel>
Status: CLOSED WONTFIX QA Contact:
Severity: normal    
Priority: P3 CC: martinae
Version: 3.2   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard: stalebug
Attachments:
Description Flags
Fix to enable the quick assist/clean up none

Description Benno Baumgartner CLA 2006-04-27 06:03:29 EDT
Take a version earlier then 20060427 or applay the attached patch

Given:
if (true) {
	if (false)
		;
	else
		;
} else
	;

1. Set cursor before first '{'
2. Ctrl-1
3. Change 'if' block to statement
Is:
if (true)
	if (false)
		;
	else
		; else
	;
Should:
if (true)
	if (false)
		;
	else
		;
else
	;

I've disabled the quick assist/clean up there for the moment. I would like to enabled it. But it looks bad with the formatting.
Comment 1 Benno Baumgartner CLA 2006-04-27 06:04:36 EDT
Created attachment 39652 [details]
Fix to enable the quick assist/clean up
Comment 2 Martin Aeschlimann CLA 2006-04-27 09:52:03 EDT
I won't be able to look at this for 3.2, so decide if you still want to release the quick assist.
Comment 3 Benno Baumgartner CLA 2006-04-27 10:23:33 EDT
That's ok, I wont release it. I think people will get scared when they see the formatting after the quick assist because they may think the semantic has changed. 
Comment 4 Eclipse Genie CLA 2019-01-05 00:16:00 EST
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.