This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 198149 - Manual line wrap alignment of method args not working as expected
Summary: Manual line wrap alignment of method args not working as expected
Status: RESOLVED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: Formatting & Indentation (show other bugs)
Version: 7.0
Hardware: PC Windows XP
: P3 normal (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-27 17:21 UTC by sindisil
Modified: 2011-05-03 05:24 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description sindisil 2011-04-27 17:21:22 UTC
Product Version: NetBeans IDE 7.0 (Build 201104080000)
Java: 1.6.0_24; Java HotSpot(TM) Client VM 19.1-b02
System: Windows XP version 5.1 running on x86; Cp1252; en_US (nb)

Editor Formatting options
* Multi-line alignment: Method parameters, annotation arguments,
        binary operators, assignment, parenthesized, method call
        arguments, array initializer, ternary operators & for checked.
* Wrapping
       - Always: For Statement, While Statement, Do ... While Statement,
               Annotations
       - All others set to If Long
       - Wrap After Binary/Ternary Operators both unchecked.


Original line:

        Logger.log("getProfiles - back from getting profiles in " + (System.currentTimeMillis() - t) / 1000 + " seconds");

Typing CR before the String concatenation operator gives:

        Logger.log("getProfiles - back from getting profiles in " 
                + (System.currentTimeMillis() - t) / 1000 + " seconds");

I would expect (and ctrl+alt+f gives):

        Logger.log("getProfiles - back from getting profiles in "
                   + (System.currentTimeMillis() - t) / 1000 + " seconds");
Comment 1 Dusan Balek 2011-05-02 13:36:48 UTC
Fixed in jet-main.

http://hg.netbeans.org/jet-main/rev/6e969479006b
Comment 2 Quality Engineering 2011-05-03 05:24:09 UTC
Integrated into 'main-golden', will be available in build *201105030000* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/6e969479006b
User: Dusan Balek <dbalek@netbeans.org>
Log: Issue #198149: Manual line wrap alignment of method args not working as expected - fixed.