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.
Summary: | Triggers are not properly formatted | ||
---|---|---|---|
Product: | javafx | Reporter: | Alexandr Scherbatiy <sunflower> |
Component: | Editor | Assignee: | Anton Chechel <manowar> |
Status: | VERIFIED FIXED | ||
Severity: | blocker | ||
Priority: | P2 | ||
Version: | 6.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: | |
Bug Depends on: | |||
Bug Blocks: | 173487 |
Description
Alexandr Scherbatiy
2009-09-30 10:39:46 UTC
The same is for the class triggers. Format the code: ------------------------------------------------- class Foo { var x : Integer on replace = newV { println("x: =>{newV}={x}"); }; var y : Integer on replace { println("y: {y}"); }; var z : String = "Ralph" on replace { println("z: {z}"); }; } ------------------------------------------------- The result is: ------------------------------------------------- class Foo { var x : Integer on replace = newV { println("x: =>{newV}={x}"); }; var y : Integer on replace { println("y: {y}"); }; var z : String = "Ralph" on replace { println("z: {z}"); }; } ------------------------------------------------- Formatting it-self has been fixed: http://hg.netbeans.org/javafx/rev/87263c31d320 Formatting of block expression in the "on replace" clause depends on wrapping "Brace Placement" settings. If wrapping is incorrect, then it's another issue, not P2 for sure. Formatting settings are not implemented yet, but should be asap. verified in Build 200911170201 |