Bug 25559 - more code formatter options
Summary: more code formatter options
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.1   Edit
Hardware: PC All
: P3 enhancement (vote)
Target Milestone: 3.0 M4   Edit
Assignee: Olivier Thomann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-10-30 17:07 EST by Alvin Thompson CLA
Modified: 2003-10-28 04:43 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alvin Thompson CLA 2002-10-30 17:07:02 EST
i would like a few more options under Preferences->Java->Code Formatter to suit
my somewhat bizzarre coding style:

really compact assignment: for example, 'int x=1' instead of 'int x = 1'
compact compares: 'if (x==1)' or 'if (x == 1)'
compact boolean operations: 'if (true&&false)' or 'if (true && false)'
compact casts: 'Element x = (Element)object' or 'Element x = (Element) object'
compact arguments: 'foo(x,y)' or 'foo(x, y)'

adding these would really make me happy.
Comment 1 Philipe Mulet CLA 2002-10-30 17:08:17 EST
Sounds doable with our new code formatter implementation...
Comment 2 Olivier Thomann CLA 2003-01-15 13:22:55 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:36:05 EDT
Resurrecting for 3.0
Comment 4 Olivier Thomann CLA 2003-06-12 15:58:56 EDT
Reopen for 3.0 consideration.
Comment 5 Olivier Thomann CLA 2003-10-03 10:09:20 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:13:28 EDT
Verified.
Comment 7 Alvin Thompson CLA 2003-10-13 13:07:20 EDT
is there any way to manually set the options until a UI comes out?
Comment 8 Robert (Kraythe) Simmons CLA 2003-10-14 19:19:27 EDT
The Jalopy Plugin for Eclipse will do all of this. 
Comment 9 Nikolay Metchev CLA 2003-10-15 04:24:25 EDT
Jalopy development has been discontinued...bugs are not going to get fixed... 
features are not going to get added...unlike in eclipse!
Comment 10 Alvin Thompson CLA 2003-10-15 10:35:00 EDT
and as i said before, jalopy is under the BSD liscense
Comment 11 Nikolay Metchev CLA 2003-10-15 11:50:53 EDT
you haven't said that in this bug report. The fact that it is BSD doesn't 
contradict what I said:
"bugs are not going to get fixed...features are not going to get added...unlike 
in eclipse!"
Comment 12 Jamie Bisotti CLA 2003-10-27 16:00:31 EST
>"bugs are not going to get fixed...
>features are not going to get added...
>unlike in eclipse!"

I believe your comments are a bit misleading.  Jalopy is an open source project.
 Although the original author(s) might not be supporting it anymore (in favor of
their new commercial version), the code is still sitting on SourceForge for
anyone to enhance/fix/modify as they see fit.
Comment 13 Olivier Thomann CLA 2003-10-27 16:37:23 EST
Then go ahead. Nothing prevents you from doing it. Eclipse is an open-source 
project after all.
Comment 14 Nikolay Metchev CLA 2003-10-28 04:43:01 EST
Nobody has done any work on Jalopy for a long time and doesn't seem likely. 
However the same is definately not true for eclipse! My point is that 
bugs/enhancements are 1000% more likely to be addressed in Eclipse.