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

Bug 421748

Summary: [Code Formatter] one line ifs + wrapping misbehaves
Product: [Eclipse Project] JDT Reporter: Palmer Eldritch <the.ubik>
Component: CoreAssignee: Mateusz Matela <mateusz.matela>
Status: CLOSED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: mateusz.matela
Version: 4.3   
Target Milestone: 4.5   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Attachments:
Description Flags
formatter export none

Description Palmer Eldritch CLA 2013-11-14 10:32:20 EST
Created attachment 237469 [details]
formatter export

In the code below the Build.VERSION_CODES.GINGERBREAD) ends exactly at column 80 (line begins with 2 tabs, tab size = 4)

		if (android.os.Build.VERSION.SDK_INT >= Build.VERSION_CODES.GINGERBREAD)
			ed.apply();
		else ed.commit();

hitting Ctrl+Shift+F moves ed to line above - needlessly breaking wrapping

I attach the formatting profile
Comment 1 Mateusz Matela CLA 2015-12-26 15:54:39 EST
This problem no longer occurs after the formatter redesign.

*** This bug has been marked as a duplicate of bug 303519 ***