Bug 442952 - FXML => Java compiler does not generate styleClass values appropriately
Summary: FXML => Java compiler does not generate styleClass values appropriately
Status: UNCONFIRMED
Alias: None
Product: Efxclipse
Classification: Technology
Component: Tooling (show other bugs)
Version: 1.0.0   Edit
Hardware: Macintosh Mac OS X
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-08-31 05:44 EDT by Mario Wunderlich CLA
Modified: 2014-08-31 05:44 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mario Wunderlich CLA 2014-08-31 05:44:44 EDT
The FXML => Java compiler incorrectly generates and sets empty Strings for styleClass property when multiple styleClasses are defined in FXML. When a single styleClass is defined in FXML (as an XML attribute), it's completely omitted from compiled Java class.

For example, the following FXML:

<styleClass>
    <String fx:value="one" />
    <String fx:value="two" />
    <String fx:value="three" />
</styleClass>

Is compiled into Java:

TextField e_3 = new TextField();
{
    String e_4 = new String();
    e_3.getStyleClass().add(e_4);
}
{
    String e_5 = new String();
    e_3.getStyleClass().add(e_5);
}
{
    String e_6 = new String();
    e_3.getStyleClass().add(e_6);
}