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.
NetBeans IDE 6.9 Beta Product Version = NetBeans IDE 6.9 Beta (Build 201004142028) (#b0fcf3f1c0b5) Operating System = Windows XP version 5.1 running on x86 Java; VM; Vendor = 1.6.0_15; Java HotSpot(TM) Client VM 14.1-b02; Sun Microsystems Inc. Steps to reproduce: - Format the code: ------------------------------------- var N = 5; var fact = {var n = 1; for(i in [1..N]){ n = i * n} n }; ------------------------------------- The result is: ------------------------------------- var N = 5; var fact = { var n = 1; for (i in [1..N]) { n = i * n } n }; -------------------------------------
So what is the problem? :)
Currently formatter will keep one line formatting if block contains one expression only. Like: var a = if true 10 else 20; In code above there are more expressions so formatter algorithm's complication should be increased significantly. You can create ENCHANCEMENT issue if you want.
Keep one line formatting if the expression is written only on one line
.
Closing all bugs filed against JavaFX 1.x as wontfix. We will support JavaFX 2.0 - please keep opened only bugs against the new release. Thanks.