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 182382 - Don't generate fields for elements with ID in "libraries:" section of FXD
Summary: Don't generate fields for elements with ID in "libraries:" section of FXD
Status: RESOLVED FIXED
Alias: None
Product: javafx
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 6.x
Hardware: All All
: P3 normal (vote)
Assignee: Andrew Korostelev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-03-19 14:48 UTC by Lukas Hasik
Modified: 2010-03-24 15:08 UTC (History)
1 user (show)

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 Lukas Hasik 2010-03-19 14:48:06 UTC
Product Version: NetBeans IDE Dev (Build 201003180200)
Java: 1.6.0_17; Java HotSpot(TM) 64-Bit Server VM 14.3-b01-101
System: Mac OS X version 10.6.2 running on x86_64; MacRoman; en_US (nb)
Userdir: /Users/lukas/netbeans/userdirs/nb-fxc-swat-0317

-Production Suite in Soma generates a little bit different FXD. It contains "libraries" section where the elements have to have an ID because they are referred from the "content" section.

-for FXZ (https://netbeans.org/bugzilla/attachment.cgi?id=95438) it generates
{code}
public class SideMenuUI extends FXDNode {
	
	override public var url = "{__DIR__}SideMenu.fxz";
	
	public-read protected var Sky_1: Node;
	public-read protected var Sky_8: Node;
	public-read protected var activeAreas: Group;
	public-read protected var clipShape: Node;
	public-read protected var hovers: Group;
	public-read protected var texts: Group;
	
	override protected function contentLoaded() : Void {
		Sky_1=getNode("Sky_1");
		Sky_8=getNode("Sky_8");
		activeAreas=getGroup("activeAreas");
		clipShape=getNode("clipShape");
		hovers=getGroup("hovers");
		texts=getGroup("texts");
	}
{code}

But the "Sky_*" fields aren't necessary and probably unusable.
Comment 1 Andrew Korostelev 2010-03-24 15:08:14 UTC
for FXD only "contect" is now processed.
"libraries" and "actions" are ignored.
http://hg.netbeans.org/javafx/rev/a30a762f74d7