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

Bug 365264

Summary: [preferences] Add customizable formatting preferences for line wrapping based on number of elements
Product: [Eclipse Project] JDT Reporter: Ankush Kalkote <ankush>
Component: UIAssignee: JDT-UI-Inbox <jdt-ui-inbox>
Status: ASSIGNED --- QA Contact:
Severity: enhancement    
Priority: P3 CC: amj87.iitr, ankush, daniel_megert, deepakazad, markus.kell.r, sam, srikanth_sankaran
Version: 3.8   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:
Bug Depends on: 303519    
Bug Blocks:    
Attachments:
Description Flags
new formatter prefs-high level none

Description Ankush Kalkote CLA 2011-12-01 01:21:29 EST
Build Identifier: 

Formatter algorithm for https://bugs.eclipse.org/bugs/show_bug.cgi?id=303519 allows more customizable formatting preferences based on the number of elements during line wrapping.
e.g. if method declaration contains more than 4 parameters, wrapping should do ONE_PER_LINE split, else it should do COMPACT split. 
Implementation of UI for these preferences is needed.
This separate bug is created to track the UI part of bug 303519.

Reproducible: Always
Comment 1 Ayushman Jain CLA 2011-12-01 10:55:05 EST
Note that a patch for jdt.ui is attached in bug 303519 - https://bugs.eclipse.org/bugs/attachment.cgi?id=194494
Comment 2 Ayushman Jain CLA 2012-01-11 01:34:28 EST
Created attachment 209298 [details]
new formatter prefs-high level

This is the document prepared by Ankush to list out the new formatter preferences which the patch in bug 303519 introduces.
Comment 3 Srikanth Sankaran CLA 2012-01-16 01:37:38 EST
(In reply to comment #1)
> Note that a patch for jdt.ui is attached in bug 303519 -
> https://bugs.eclipse.org/bugs/attachment.cgi?id=194494

Please ignore this. The right and most recent patch is 
https://bugs.eclipse.org/bugs/attachment.cgi?id=206927
Comment 4 Markus Keller CLA 2012-01-16 06:11:11 EST
JDT UI test suites that could be affected here are:
- org.eclipse.jdt.text.tests.JdtTextTestSuite
- org.eclipse.jdt.ui.tests.AutomatedSuite
- org.eclipse.jdt.ui.tests.refactoring.all.AllAllRefactoringTests.suite()