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 180787 - Remove commas after the Palette items
Summary: Remove commas after the Palette items
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: 178578
  Show dependency tree
 
Reported: 2010-02-16 06:54 UTC by Alexandr Scherbatiy
Modified: 2010-03-09 08:55 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexandr Scherbatiy 2010-02-16 06:54:00 UTC
NetBeans-JavaFX-Soma:  #155

Some palette items have a comma at the end. For example:

Gradients -> Stop:
----------------------------
Stop {
	color : Color.WHITE
	offset: 0.0
},
----------------------------

Paths 
----------------------------
MoveTo {
	x : 0.0, y : 0.0
},
----------------------------

----------------------------
LineTo {
	x : 0.0, y : 0.0
},
----------------------------
and so on.

It is not necessary now to have commas at the end.


For example the code below works without commas:
----------------------------------------------
import javafx.scene.shape.*;

Path {
    elements: [
        MoveTo { x: 0.0, y: 0.0 }
        LineTo { x: 0.0, y: 0.0 }
        ArcTo { x: 0.0, y: 0.0 radiusX: 0.0, radiusY: 0.0 }
    ]
}
----------------------------------------------

And some times it is necessary to define a variable with the component value:

----------------------------------------------
var moveTo = MoveTo { x : 0.0, y : 0.0 };
----------------------------------------------

The comma is not necessary in this case too.
Comment 1 Karol Harezlak 2010-02-18 04:28:10 UTC
fixed,

changeset:
http://hg.netbeans.org/javafx/rev/b6e137f89cb6
Comment 2 Alexandr Scherbatiy 2010-03-09 08:55:37 UTC
verified in NetBeans-JavaFX-Soma:  #179