Bug 53514 - new Formatter reformats inline comments
Summary: new Formatter reformats inline comments
Status: RESOLVED WORKSFORME
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: 3.0 M8   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-03-02 13:52 EST by Steve Ray CLA
Modified: 2004-03-24 11:19 EST (History)
0 users

See Also:


Attachments
Formatter prefs (18.43 KB, text/xml)
2004-03-02 13:53 EST, Steve Ray CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Steve Ray CLA 2004-03-02 13:52:35 EST
I have comments at the end of assignment statements like the following:

   public static String        fullName;       // Needs to be defined in child.
   public static String[][]    keywordTypes;   // Needs to be defined in child.
   public static String[][]    menuItems;      // Needs to be defined in child.
   public static String[][]    comboItems;     // Needs to be defined in child.
   public static long[]        menuMask;       // Needs to be defined in child.

and when I reformat with the latest Integration build I get the following:

   public static String        fullName;                        // Needs to be
                                                                // defined in
                                                                // child.
   public static String[][]    keywordTypes;                    // Needs to be
                                                                // defined in
                                                                // child.
   public static String[][]    menuItems;                       // Needs to be
                                                                // defined in
                                                                // child.
   public static String[][]    comboItems;                      // Needs to be
                                                                // defined in
                                                                // child.
   public static long[]        menuMask;                        // Needs to be
                                                                // defined in
                                                                // child.
I don't know how to control this or stop it from happening.
Comment 1 Steve Ray CLA 2004-03-02 13:53:26 EST
Created attachment 8276 [details]
Formatter prefs
Comment 2 Olivier Thomann CLA 2004-03-02 15:37:52 EST
Go to Preferences>Java>Code Formatter>Create a new profile based on the
predefined one that you are using.
Go to the Comment tab and uncheck format comments.
Comment 3 Olivier Thomann CLA 2004-03-24 11:19:37 EST
Could you please confirm that setting the right option fixed your problem?
Close as WORKSFORME. Reopen if this is still an issue.