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-JavaFX-Soma: #140 Product Version = NetBeans IDE Dev (Build 201001280200) (#eeef33500a1a) 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: - Copy the code to the editor: ------------------------------------------------------------ import javafx.scene.*; import javafx.scene.shape.*; import javafx.scene.text.*; public class MyText extends CustomNode { var content = "Hello World!"; override function create() { Group { content: [ Rectangle { } Text { cursor: Cursor.MOVE content: bind content } ] } } } ------------------------------------------------------------ - Format the code The last bracket is not properly formatted: ------------------------------------------------------------ public class MyText extends CustomNode { // .... } ------------------------------------------------------------
*** Bug 180149 has been marked as a duplicate of this bug. ***
The same is for functions: Steps to reproduce: - Copy the code to the editor: ------------------------------------------------------------ function run() { } ------------------------------------------------------------ - Format the code The last bracket is not properly formatted: ------------------------------------------------------------ function run() { } ------------------------------------------------------------
Decreasing priority. It's not P2.
1. It is the regression from the previous relese 2. It is common use case. Usually the JavaFX classes have methods and incorrect formatting makes it useless for using for the whole code.
1. It's not regression. That bug was before. 2. It is not common, it occurs only when there is exact number of spaces as current indent (4 in example below). If you add or remove one space - it formatted correctly. And it's not in methods, it is in any block.
NetBeans-JavaFX-Soma: #149 - Format the code ----------------------------------- import javafx.scene.layout.HBox; HBox { } ----------------------------------- The result is: ----------------------------------- import javafx.scene.layout.HBox; HBox { } -----------------------------------
The code is not formatted: ----------------------------------- import javafx.util.Math; public class FXVector { public-init var x: Number; public-init var y: Number; public function getLength(): Number { return Math.sqrt(x * x + y * y); } } -----------------------------------
*** Bug 185665 has been marked as a duplicate of this bug. ***
.
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.