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 186810 - Update CustomNode item
Summary: Update CustomNode item
Status: VERIFIED FIXED
Alias: None
Product: javafx
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P3 normal (vote)
Assignee: Karol Harezlak
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-27 13:37 UTC by Alexandr Scherbatiy
Modified: 2010-06-17 10:20 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 2010-05-27 13:37:04 UTC
http://wikis.sun.com/display/JavaFxCodeConv/Home

Now the CustomNode item in the Applications category looks like:
-------------------------------------------------------------
class MyCustomNode extends CustomNode {

    public override function create(): Node {
        return Group {
                    content: []
                };
         }

}
-------------------------------------------------------------

According to the Coding Conventions for the JavaFX Language
the return type and return keyword should be omitted  in the code
http://wikis.sun.com/display/JavaFxCodeConv/Home

The updated code can look like:
-------------------------------------------------------------
import javafx.scene.Group;
import javafx.scene.CustomNode;

class MyCustomNode extends CustomNode {

    public override function create() {
        Group {
            content: []
        }
    }

}
-------------------------------------------------------------
Comment 1 Karol Harezlak 2010-05-28 07:41:24 UTC
fixed,

http://hg.netbeans.org/javafx/rev/8a10a533419d
Comment 2 Alexandr Scherbatiy 2010-06-17 10:20:29 UTC
verified in NetBeans IDE Dev (Build 201006170001)