Bug 115913 - Unexpected formatting of end-of-line comments
Summary: Unexpected formatting of end-of-line comments
Status: VERIFIED DUPLICATE of bug 88570
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.2   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: 3.3 M5   Edit
Assignee: Olivier Thomann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-11-10 16:24 EST by Nick Edgar CLA
Modified: 2007-02-09 08:19 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 Nick Edgar CLA 2005-11-10 16:24:09 EST
build I20051102-1600

In OpenWithMenu.fillMenu I had:
        IEditorDescriptor defaultEditor = registry
                .findEditor(IDEWorkbenchPlugin.DEFAULT_TEXT_EDITOR_ID); // may
be null

Pressing Ctrl+Shift+F once yields:
        IEditorDescriptor defaultEditor = registry
                .findEditor(IDEWorkbenchPlugin.DEFAULT_TEXT_EDITOR_ID); // may
                                                                        // be
                                                                        // null

Pressing it again yields:
        IEditorDescriptor defaultEditor = registry
                .findEditor(IDEWorkbenchPlugin.DEFAULT_TEXT_EDITOR_ID); // may
        // be
        // null

Expectation: the comment is not split at all
Comment 1 Nick Edgar CLA 2005-11-10 16:24:34 EST
Bugzilla wrapped the first case.  The comment should be all on one line.
Comment 2 Olivier Thomann CLA 2007-02-08 11:17:45 EST
Using 3.3M5, line comment can be formatted independently from other types of comments (block or javadoc).
Simply disable line comment formatting.
Closing as dup of bug 88570.

*** This bug has been marked as a duplicate of bug 88570 ***
Comment 3 Olivier Thomann CLA 2007-02-09 08:19:31 EST
Verified for 3.3M5.