Bug 173468 - Formatting breaks line for simple function body
Formatting breaks line for simple function body
Product: javafx
Classification: Unclassified
Component: Editor
All All
: P3 (vote)
: 6.x
Assigned To: Anton Chechel
Depends on:
Blocks: 173487
  Show dependency treegraph
Reported: 2009-10-01 10:13 UTC by Alexandr Scherbatiy
Modified: 2010-01-25 04:24 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT


Note You need to log in before you can comment on or make changes to this bug.
Description Alexandr Scherbatiy 2009-10-01 10:13:53 UTC

  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) {

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 }
Comment 1 Anton Chechel 2009-10-16 13:43:49 UTC
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
Comment 2 Alexandr Scherbatiy 2009-10-27 15:55:28 UTC
The issue is still valid and the implementing the  JavaFX editor settings does not mean that the issue automatically
will be fixed.
Comment 3 Anton Chechel 2009-11-11 10:45:57 UTC
Comment 4 Alexandr Scherbatiy 2009-11-20 04:43:33 UTC
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
Comment 5 Petr Suchomel 2009-11-20 05:39:16 UTC
Sorry, but does this qualify to be a P2 issue?
Comment 6 Alexandr Scherbatiy 2009-11-20 05:43:53 UTC
Lowered priority to P3
Comment 7 Anton Chechel 2009-11-24 08:12:23 UTC
Comment 8 Alexandr Scherbatiy 2009-12-09 03:46:16 UTC
verified in NetBeans-JavaFX-Soma  #60
Comment 9 Petr Suchomel 2010-01-15 03:25:41 UTC
Fixed in release68_fixes
Comment 10 Alexandr Scherbatiy 2010-01-25 04:24:29 UTC
Verified in netbeans-6.8-201001241915-javafx-full.zip from /builds/netbeans/6.8/fixes

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo