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-trunk-nightly-200909301401-javafx-full.zip Product Version = NetBeans IDE Dev (Build 200909301401) (#c01f45755f4f) 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: - Create a JavaFX Script file: --------------------------------------------------------------- function sqr( x:Number) { x * x } --------------------------------------------------------------- - Format code The result is: --------------------------------------------------------------- function sqr(x : Number) { x*x } --------------------------------------------------------------- Code formatting should not break a function body which is written in the same line. The result of the formatting should be: function sqr( x:Number) { x * x }
This not a bug but feature. New lines behavior is described in formatting settings (Tools-Options-Editor-Formatting). For now I am using java settings, but later it will be rewritten for javafx. See http://www.netbeans.org/issues/show_bug.cgi?id=174445
The issue is still valid and the implementing the JavaFX editor settings does not mean that the issue automatically will be fixed.
fixed http://hg.netbeans.org/javafx/rev/d6747a96c94b
The issue is still reproduced in build 200911200201. The result of the code 'function sqr( x:Number) { x * x }' formatting is --------------------------------------------------- function sqr(x: Number) { x * x } ---------------------------------------------------
Sorry, but does this qualify to be a P2 issue?
Lowered priority to P3
fixed http://hg.netbeans.org/javafx/rev/656d5d76be1f
verified in NetBeans-JavaFX-Soma #60
Fixed in release68_fixes http://hg.netbeans.org/javafx/rev/f2e9dd8bdb1f
Verified in netbeans-6.8-201001241915-javafx-full.zip from /builds/netbeans/6.8/fixes