Ernie Rael created NETBEANS-4745:
------------------------------------

             Summary: fxml editor shows errors for Insets (immutable objects in 
general?)
                 Key: NETBEANS-4745
                 URL: https://issues.apache.org/jira/browse/NETBEANS-4745
             Project: NetBeans
          Issue Type: Bug
          Components: javafx - Editor
            Reporter: Ernie Rael


To recreate:
NewProject > JavaWithMaven > FXML JavaFX Maven Archetype (Gluon)
Open primary.fxml, in "other sources" "source/main/resources" <package>
Observe that the lines like:
{code}
<Insets bottom="37.0" left="4.0" right="27.0" top="4.0" />
{code}
show errors, in particular
{code}
Instances of javafx.geometry.Insets cannot be created by FXML loader
Class 'javafx.geometry.Insets' does not support property 'bottom'
{code}

examining the code in NetBeans "JavaFX 2 Support" module
{code:java}
package org.netbeans.modules.javafx2.editor.completion.beans;
public final class BeanModelBuilder
{code}

The problem seems to start with Insets not having a no argument constructor; 
and the properties are not recognized because they have no setters. So it looks 
like immutable objects are not handled.

Look near the begginning of BeanModelBuilder.process() around
{code}
                if (c.getParameters().isEmpty() &&
{code}
and then BeanModelBuilder.inspectMembers(), addProperty(), findPropertyName
{code}
            if (!name.startsWith(SET_NAME_PREFIX) || name.length() == 
SET_NAME_PREFIX_LEN ||
{code}




--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commits-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to