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 176378 - Code formatting does not properly format value of the attribute with function type
Summary: Code formatting does not properly format value of the attribute with function...
Status: VERIFIED FIXED
Alias: None
Product: javafx
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P2 normal (vote)
Assignee: Anton Chechel
URL:
Keywords:
Depends on:
Blocks: 173487
  Show dependency tree
 
Reported: 2009-11-10 04:55 UTC by Alexandr Scherbatiy
Modified: 2009-11-19 05:19 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 2009-11-10 04:55:09 UTC
Product Version         = NetBeans IDE Dev (Build 200911091156) (#fa9887b26708)
  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.stage.Stage;
import javafx.scene.Scene;
import javafx.scene.text.Text;
import javafx.scene.input.MouseEvent;

Stage {
    title : "Application title"
    scene : Scene {
        width : 250
        height : 80
        content : Text {
            x : 10
            y : 30
            content : "Application content"
            onMouseClicked : function( e: MouseEvent ):Void {
        println((e.node as Text).content);
}
            }
        }
    }
----------------------------------------------------

- Format the code
The result is

----------------------------------------------------
import javafx.stage.Stage;
import javafx.scene.Scene;
import javafx.scene.text.Text;
import javafx.scene.input.MouseEvent;


Stage {
    title : "Application title"
    scene : Scene {
        width : 250
        height : 80
        content : Text {
            x : 10
            y : 30
            content : "Application content"
            onMouseClicked : function( e: MouseEvent ):Void {
        println((e.node as Text).content);
}
            }
        }
    }
----------------------------------------------------
Comment 1 Anton Chechel 2009-11-12 09:23:30 UTC
fixed
http://hg.netbeans.org/javafx/rev/c1dfc2f8c04f
Comment 2 Alexandr Scherbatiy 2009-11-19 05:19:49 UTC
verified in Build 200911190201