无法在Scene Builder中导入Charm库3.0.0的View容器

不是强制性的

我正在尝试将com.gluonhq:charm:3.0.0 jar导入SceneBuilder,但是由于某些原因,我没有获得View容器。我尝试从存储库和本地gradle缓存中加载超级魅力罐。但是我只导入了22个项目,而不是完整的24个项目,也没有视图。

我最终想测试一个示例“ Gluon Mobile-具有FXML的多视图项目”,但是由于缺少View容器,因此无法将相应的FXML文件加载到SceneBuilder中。

谢谢你的帮助!

PS。如果有所作为,我正在使用OSX 10.11.5(El Capitan)

在此处输入图片说明

在此处输入图片说明

何塞·佩雷达(Jose Pereda)

As you may know, you don't need to go to the .gradle or .m2 local repositories, you can already retrieve the artifact from the online repositories:

Open the Library Manager and click Search repositories, type 'charm' and click search. From the list of results, select com.gluonhq:charm, and press 'Add JAR', and it will import the latest version (3.0.0 as of now), and you will find all the components. Click 'Import Components', and close the dialogs.

There is a known issue when importing jars, though, and some components won't be listed initially, as it happens with View in the case of the Charm jar.

The good news is it doesn't mean they won't be included: If you close Scene Builder and launch it again, those missing components will show up under the Custom panel.

问题与SceneBuilder扫描jar的方式有关,以找出所有类中哪些是可能的自定义控件候选对象。在此过程中,某些有效控件(如View)可能会由于类路径冲突而失败,因此它们最初不会在导入对话框中列出。但是,当您关闭SB并使用干净的类路径再次将其打开时,罐子将正常导入,并将View其余控件添加到“自定义”面板中。

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章