[jira] [Commented] (NETBEANS-4745) fxml editor shows errors for Insets (immutable objects in general?)

2020-09-21 Thread Ernie Rael (Jira)


[ 
https://issues.apache.org/jira/browse/NETBEANS-4745?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17199725#comment-17199725
 ] 

Ernie Rael commented on NETBEANS-4745:
--

[~sdedic] I can't even propose a fix for this one... If a fix is not obvious, I 
can gather info, if you'd like. If you can outline a fix, I can try to put 
together a PR.

For the error annotator parser (which works ok and has a list of modules)
{code}
 ParserManager.MimeTaskAction.run
 userTask: FxmlParser$1UT
{code}

For the completion parser, after Ctrl-Space
{code}
 ParserManager.UserTaskAction.run
 userTask: FXMLCompletion2$Q$Task@4ccbdf93
{code}

The compiler info for the completion parser does not have the list of modules.


> 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
>Priority: Major
>  Labels: pull-request-available
> Attachments: AllModulesAssert-messages-2.log
>
>  Time Spent: 2h
>  Remaining Estimate: 0h
>
> To recreate:
> NewProject > JavaWithMaven > FXML JavaFX Maven Archetype (Gluon)
> Open primary.fxml, in "other sources" "source/main/resources" 
> Observe that the lines like:
> {code}
> 
> {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



[jira] [Commented] (NETBEANS-4745) fxml editor shows errors for Insets (immutable objects in general?)

2020-08-27 Thread Ernie Rael (Jira)


[ 
https://issues.apache.org/jira/browse/NETBEANS-4745?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17186012#comment-17186012
 ] 

Ernie Rael commented on NETBEANS-4745:
--

This was reported against NB-8.1 
https://bz.apache.org/netbeans/show_bug.cgi?id=254824

> 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
>Priority: Major
>
> To recreate:
> NewProject > JavaWithMaven > FXML JavaFX Maven Archetype (Gluon)
> Open primary.fxml, in "other sources" "source/main/resources" 
> Observe that the lines like:
> {code}
> 
> {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