Bug 24200

Summary: "Space inside parens & brackets" option in Code Formatter
Product: [Eclipse Project] JDT Reporter: Paul Muschick <paul_muschick>
Component: CoreAssignee: Olivier Thomann <Olivier_Thomann>
Status: VERIFIED FIXED QA Contact:
Severity: enhancement    
Priority: P3    
Version: 2.0.1   
Target Milestone: 3.0 M4   
Hardware: All   
OS: All   
Whiteboard:

Description Paul Muschick CLA 2002-09-27 16:06:01 EDT
Add the option to format source code with a space at the beginning and at the 
end of an expresion within parentheses and/or brackets.  Functions used without 
arguments would not have spaces inside their parens.

Examples:

println("Hello World"); would become println( "Hello World" );
foo = (9 + 1) * 5; would become foo = ( 9 + 1 ) * 5;
array[5]; would become array[ 5 ];
foo(); would stay foo();
bar(void); would become bar( void );
Comment 1 Kai-Uwe Maetzel CLA 2002-10-07 11:35:19 EDT
Core formatting issue before UI would have to be added.
Comment 2 Olivier Thomann CLA 2003-01-15 13:22:37 EST
We need to clear 2.1 bug reports that won't be addressed before 2.1. The new 
implementation is still in the works. Therefore we cannot include it for 2.1. 
Not enough testing and we need to polish the preferences. This will be address 
for 2.2 as stated in the JDT/Core plan.
Comment 3 Philipe Mulet CLA 2003-06-12 06:35:58 EDT
Resurrecting for 3.0
Comment 4 Olivier Thomann CLA 2003-06-12 15:58:47 EDT
Reopen for 3.0 consideration.
Comment 5 Olivier Thomann CLA 2003-10-03 10:07:26 EDT
This is addressed in the new formatter.
Fixed and released in HEAD.
Regression test added.
Comment 6 David Audel CLA 2003-10-13 12:11:29 EDT
Verified