简体   繁体   English

Eclipse 在 css 文件中没有看到 JavaFX 属性,“未知属性”

[英]Eclipse doesn't see JavaFX properties in css file, “unknown property”

I installed Eclipse and downloaded the OpenJFX SDK.我安装了 Eclipse 并下载了 OpenJFX SDK。 But the problem is that Eclipse marks all -fx- properties in the.css file as warning and writes "unknown property".但问题是 Eclipse 将 .css 文件中的所有 -fx- 属性标记为警告并写入“未知属性”。 My JavaFX projects compile and run fine - I followed the instructions on the official JavaFX website.我的 JavaFX 项目编译并运行良好 - 我按照官方 JavaFX 网站上的说明进行操作。 But CSS auto-completion has no properties.但是 CSS 自动完成没有属性。 In addition, when I add the JavaFX SDK Library to the Build Path, it does not appear in Project Explorer, maybe this is due.另外,当我将 JavaFX SDK Library 添加到 Build Path 中时,它没有出现在 Project Explorer 中,可能是这个原因。 Also I have installed e(fx)clipse.我还安装了 e(fx)clipse。 在此处输入图像描述 在此处输入图像描述 在此处输入图像描述 在此处输入图像描述

Solution: Delete e(fx)clipse plugin;解决方法:删除e(fx)clipse插件; try to install again from尝试再次安装

http://download.eclipse.org/efxclipse/updates-released/3.6.0/site http://download.eclipse.org/efxclipse/updates-released/3.6.0/site

https://download.eclipse.org/efxclipse/updates-nightly/site https://download.eclipse.org/efxclipse/updates-nightly/site

, probably you will be noticed that due unsatisfied dependencies version will be automatically downgraded (3.6.0 -> 3.5.7 in my case). ,可能您会注意到,由于不满足的依赖关系版本将被自动降级(在我的情况下为 3.6.0 -> 3.5.7)。 If so, install m2e support from same repository:如果是这样,请从同一存储库安装 m2e 支持: 在此处输入图像描述

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM