Bug 44673 - Formatting
Summary: Formatting
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.0   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: 3.0 M6   Edit
Assignee: Olivier Thomann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on: 45039
Blocks:
  Show dependency tree
 
Reported: 2003-10-10 14:27 EDT by Derek Greer CLA
Modified: 2003-12-17 06:36 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 Derek Greer CLA 2003-10-10 14:27:57 EDT
Can a new Formatting option be added to allow for statements to occur on the
same line as a control statement if not enclosed in braces?  for instance:

if (Constants.DEBUG) logger.debug("returning success");

It seems like a previous version of Eclipse allowed for this, but
it now splits.
Comment 1 Dani Megert CLA 2003-10-11 07:17:43 EDT
Java code formatter is contributed by JDT Core.
Comment 2 Olivier Thomann CLA 2003-10-14 09:15:14 EDT
The option exists. It will be available when the code formatter preference page 
is ready.
Comment 3 Olivier Thomann CLA 2003-12-04 10:06:52 EST
Please check the new preferences page in the latest integration build and let me
know if this is handled by the new formatter.
Comment 4 Olivier Thomann CLA 2003-12-04 22:24:19 EST
This is done changing the code formatter options for the formatting of the if
statement.
Comment 5 Olivier Thomann CLA 2003-12-05 07:55:21 EST
Fixed in HEAD.
Comment 6 David Audel CLA 2003-12-17 06:36:32 EST
Verified for 3.0M6