Community
Participate
Working Groups
Build Identifier: M20100909-0800 See my attached user define formater profile Reproducible: Always Steps to Reproduce: 1. Import my profile
Created attachment 182746 [details] My formatter user profile
This is present in the 32 bit Carbon Version. It is ok in the 64 bit Cocoas.
(In reply to comment #2) > This is present in the 32 bit Carbon Version. It is ok in the 64 bit Cocoas. Could you please describe what is working in Carbon and not working in Cocoa? JDT/Core code is the same in both cases. So this might be reported against a different component.
In 32 bit Carbon when I set up my code style, template wont follows it. My template: for( int i; i < size; i++ ) { } would display in the template menu and when I use it with code completion for( int i; i < size; i++ ){ } In 64 bit Cocoa when I set up my code style, template follows it (In reply to comment #3) > (In reply to comment #2) > > This is present in the 32 bit Carbon Version. It is ok in the 64 bit Cocoas. > Could you please describe what is working in Carbon and not working in Cocoa? > > JDT/Core code is the same in both cases. So this might be reported against a > different component.
Move to JDT/Text. The JDT/Core code is identical in both cases.
I cannot reproduce this using 3.7 M3 with the existing for templates or a user defined one like: --------- %< --------- for( int i; i < size; i++ ) { } --------- %< --------- If you still see this please 1. provide the template that you use (best is to export them and attach them here 2. explain what you mean exactly by "the template menu"
(In reply to comment #6) > I cannot reproduce this using 3.7 M3 with the existing for templates or a user > defined one like: > --------- %< --------- > for( int i; i < size; i++ ) > { > > } > --------- %< --------- > > If you still see this please > 1. provide the template that you use (best is to export them and attach them > here > 2. explain what you mean exactly by "the template menu" 1. Check the attachment on top of the post ( My formatter user profile ) ( right click to downloads, it's seems there is a bug with bugzilla... ). 2. Eclipse --> Preferences --> Java --> Editor --> Templates Preview window will shows: for (int ${index} = 0; ${index} < ${array}.length; ${index}++) { ${line_selection}${cursor} } while Eclipse --> Preferences --> Java --> Code Style --> Formatter --> Edit.. Preview window will shows: for ( int i = 0, j = array.length; i < array.length; i++, j-- ) { } This is a bug for both eclipse carbon 32bit and cocoa 64bit. [ Part1 ] The difference is that code completion on carbon 32bit will put the wrong format of Templates preview while cocoa 64 bits will put the right format of Formatter preview view. [ Part 2 ] I hope this clarify the situation. Marked as reopen. Since part 1 of the bug affect the newest version ( eclipse cocoa 64bit. You might want to verify Part 1 in other OS as well.
(In reply to comment #7) > I hope this clarify the situation. Marked as reopen. Since part 1 of the bug > affect the newest version ( eclipse cocoa 64bit. You might want to verify Part > 1 in other OS as well. Ops: Since part 1 of the bug affect the newest version ( eclipse cocoa 64bit ) I marked this bug reopen.
You didn't mention the preview in comment 0. This is bug 8080 which we don't plan to fix. >The difference is that code completion on carbon 32bit will put the wrong >format of Templates preview while cocoa 64 bits will put the right format of >Formatter preview view. [ Part 2 ] Can you attach a screenshot for both versions? Also, did you modify the template or is it the default 'for' template? Is the inserted code correct?
(In reply to comment #9) > You didn't mention the preview in comment 0. This is bug 8080 which we don't > plan to fix. There is a checkbox use code formatter. If nobody plan to implement that checkbook then it should be remove. This button is doing nothing since 2002. > > >The difference is that code completion on carbon 32bit will put the wrong > >format of Templates preview while cocoa 64 bits will put the right format of > >Formatter preview view. [ Part 2 ] > Can you attach a screenshot for both versions? Why ? It's text... please see comment #4 > Also, did you modify the > template or is it the default 'for' template? No > Is the inserted code correct? No
(In reply to comment #10) > (In reply to comment #9) > > You didn't mention the preview in comment 0. This is bug 8080 which we don't > > plan to fix. > > There is a checkbox use code formatter. If nobody plan to implement that > checkbook then it should be remove. This button is doing nothing since 2002. It's applied when you *insert* the template and in the code assist preview as you have already seen. > > Is the inserted code correct? > No OK, that's not good. Currently I have no clue because the code is not OS dependent. Markus, please try this out on Carbon 32bit. Thanks.
(In reply to comment #11) > > > Is the inserted code correct? > > No > > Markus, please try this out on Carbon 32bit. Thanks. Works fine for me with 3.7M3 Carbon 32bit (32bit processor, latest JavaSE 6). If you can still reproduce with that version (or a later one), please start with a new workspace, set everything up to reproduce the problem. Then close Eclipse, zip the workspace, and attach it here.