Bug 29556 - Formatter option for space in cast expression
Summary: Formatter option for space in cast expression
Status: RESOLVED DUPLICATE of bug 3331
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.1   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: 2.1 M5   Edit
Assignee: Olivier Thomann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-01-15 13:36 EST by Olivier Thomann CLA
Modified: 2003-01-16 08:17 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Olivier Thomann CLA 2003-01-15 13:36:01 EST
Using 0115, there is no option to insert/remove the space in a cast expression.
int i = (int) 0.0;
could also be formatted like:
int i = (int)0.0;

A quickfix feature requires to know what is the user's preference in this case. 
Therefore the code formatter has to support it.
Comment 1 Olivier Thomann CLA 2003-01-15 13:41:45 EST
Patch submitted for JDT/UI team.
Comment 2 Dani Megert CLA 2003-01-16 02:39:03 EST
I really don't get the difference between my PR (bug 3331 - DCR: Code Formatter
should offer cast without space) that I filed and you just resolved with LATER
and this new PR. Please shed some light on this.
Comment 3 Olivier Thomann CLA 2003-01-16 08:17:05 EST

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