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 175672 - Last square brackets are not properly formatted
Summary: Last square brackets are not properly formatted
Status: VERIFIED DUPLICATE of bug 175655
Alias: None
Product: javafx
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Anton Chechel
URL:
Keywords:
Depends on:
Blocks: 173487
  Show dependency tree
 
Reported: 2009-10-29 15:44 UTC by Alexandr Scherbatiy
Modified: 2009-11-16 06:17 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-10-29 15:44:39 UTC
Product Version         = NetBeans IDE Dev (Build 200910271401) (#32576b20b4bb)
  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.scene.*;
import javafx.scene.text.*;
import javafx.scene.paint.*;
import javafx.scene.shape.*;

public class CoordinatsView extends CustomNode{

    public var xMin: Number;
    public var xMax: Number;
    public var scale: Number;
    public var interval: Number;
    public var color: Color = Color.GREEN;


    public var content: Node[];

    override function create():Node{

      var dh = 25;

      var min = xMin * scale - dh;
      var max = xMax * scale + dh;
      var h = 7;

      var gridColor = Color.LIGHTGREY;

      Group{
        content:[
            Group{
                scaleY: -1
                content: [
                    if(interval == 0.0) then [
                        Text{ x: xMin * scale y: -3 content: "{xMin}" },
                        Text{ x: xMax * scale y: -3 content: "{xMax}"}
                    ] else [
                        for(x in [xMin..xMax step interval],  p in [x * scale] )[
                            Line{
                                startX: min startY: p
                                endX: max   endY: p
                                stroke: gridColor
                            }
                            Line{
                                startX: min startY: p
                                endX: max   endY: p
                                stroke: gridColor
                            }
                            Line{
                                startX: p startY: min
                                endX: p   endY: max
                                stroke: gridColor
                            }

                            Circle{ centerX: p radius: 2 fill: color }
                            Circle{ centerY: p radius: 2 fill: color }

                            Text{ x: p - 10 y: -3 content: "{x}" }
                            Text{ x: 3  y: -p content: "{x}"}

                         ]
                    ],
                    Line{ startX: min endX: max stroke: color },
                    Line{ startX: max endX: max - h endY: h stroke: color },
                    Line{ startX: max endX: max - h endY: -h stroke: color },
                    Line{ startY: min endY: max stroke: color },
                    Line{ startY: min  endX: -h endY: min + h stroke: color },
                    Line{ startY: min  endX:  h endY: min + h stroke: color },

                ]
              }

            ]
      }
    }

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


- Format the code
Some last square bracket is not properly formatted:
--------------------------------------------------------
                         ]
                                ],   // <- Square bracket is not properly formatted
                        // ....
                        Line {startY : min endX : -h endY : min + h stroke : color},
                        Line {startY : min endX : h endY : min + h stroke : color},
                    ]
            }

            
    


]  // <- Square bracket is not properly formatted
      }
    }

}

--------------------------------------------------------
Comment 1 Anton Chechel 2009-11-11 12:49:40 UTC

*** This bug has been marked as a duplicate of bug 175655 ***
Comment 2 Alexandr Scherbatiy 2009-11-16 06:17:22 UTC
verified in Build 200911160201