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.

Bug 155843 - Last brackets are not proprly formatted
Summary: Last brackets are not proprly formatted
Status: VERIFIED FIXED
Alias: None
Product: javafx
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Rastislav Komara
URL:
Keywords:
Depends on:
Blocks: 155841
  Show dependency tree
 
Reported: 2008-12-19 14:04 UTC by Alexandr Scherbatiy
Modified: 2009-01-12 11:12 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexandr Scherbatiy 2008-12-19 14:04:54 UTC
Steps to reproduce:

- Copy the code to the editor:
-----------------------------------------
class A {
    var a: Integer;
}

var a = A{ a: 10 };
-----------------------------------------
- Format the code
  The result is:
-----------------------------------------
var a = A{ 
    a: 10 };
-----------------------------------------
Comment 1 Alexandr Scherbatiy 2008-12-19 14:08:06 UTC
JavaFX_NB_Plugin_Franca_NB_65_fixes_latest_SDK_installer:  #3 	19-Dec-2008 00:46:48

  Product Version         = NetBeans IDE 6.5 (Build 200812180656)
  Operating System        = Windows XP version 5.1 running on x86
  Java; VM; Vendor        = 1.6.0_11; Java HotSpot(TM) Client VM 11.0-b16; Sun Microsystems Inc.
Comment 2 Alexandr Scherbatiy 2008-12-19 14:16:19 UTC
One more sample:
- Format the code:
----------------------------------------------------------
import javafx.stage.Stage;
import javafx.scene.Scene;
import javafx.scene.text.Text;
import javafx.scene.text.Font;
import javafx.scene.shape.Circle;
import javafx.scene.paint.Color;


Stage {
    title: "MyApp"
    scene: Scene {
        width: 200
        height: 200
        content: [ Circle {
                centerX: 100,
                centerY: 100
                radius: 40
                fill: Color.BLACK
} ]
    }
}
----------------------------------------------------------
Comment 3 Rastislav Komara 2009-01-05 15:47:46 UTC
.
Comment 4 Alexandr Scherbatiy 2009-01-12 11:12:21 UTC
verified in JavaFX_NB_Plugin_Franca_NB_65_fixes_cont: #20 12-Jan-2009 13:26:24