You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "Ernie Rael (Jira)" <ji...@apache.org> on 2020/09/22 01:25:00 UTC
[jira] [Issue Comment Deleted] (NETBEANS-4745) fxml editor shows
errors for Insets (immutable objects in general?)
[ https://issues.apache.org/jira/browse/NETBEANS-4745?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ernie Rael updated NETBEANS-4745:
---------------------------------
Comment: was deleted
(was: [~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
> Time Spent: 2h
> Remaining Estimate: 0h
>
> 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-unsubscribe@netbeans.apache.org
For additional commands, e-mail: commits-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists