css - 如何在 Eclipse Mars 中禁用 css 警告 "Unknown property"?

标签 css eclipse validation xtext efxclipse

我的 css 文件中收到许多“未知属性”警告。

这可能是因为我安装了 e(fx)clipse 2.0 和 Eclipse Web 开发人员工具。

如果我使用 e(fx)clipse css 编辑器打开 css 文件并添加/SuppressWarnings/警告图标会更改其颜色(见下图)。

但是:

  • 问题 View 仍然显示警告,默认的 css 编辑器也显示警告。
  • 我不想添加/SuppressWarnings/因为 WinLess 会自动生成 css 文件。

如何禁用特定文件的“未知属性”警告或完全禁用?

我的 css 文件不在“src”下,而是在“help”文件夹下。该帮助文件夹包含我的 Eclipse 插件的 html 文件和相应的 css 文件。 => 这些文件不用于 JavaFx/e(fx)clipse。

这是一篇相关文章,它并没有真正帮助我,但可能会为您提供更多信息: https://www.eclipse.org/forums/index.php/t/515810/

显示警告和问题 View 的屏幕截图(点击放大) enter image description here

最佳答案

我提交了一个 e(fx)clipse 错误 [1] 并暂时卸载了 e(fx)clipse。

一开始我安装e(fx)clipse的主要原因是为了去掉jfxrt.jar相关的access restriction警告(另见[2] ).现在,我在我的类路径文件中使用 JRE 容器的附加访问规则,而不是使用 e(fx)eclipse:

<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8">
        <attributes>
            <attribute name="maven.pomderived" value="true"/>
        </attributes>       
        <accessrules>
            <accessrule kind="accessible" pattern="javafx/**"/>
            <accessrule kind="accessible" pattern="com/sun/javafx/**"/>         
        </accessrules>  
</classpathentry>

[1] https://bugs.eclipse.org/bugs/show_bug.cgi?id=475347

[2] Using JavaFX in JRE 8

关于css - 如何在 Eclipse Mars 中禁用 css 警告 "Unknown property"?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31817620/

相关文章:

jQuery 移动 CSS : Why aren't my items styled properly?

javascript - 无法使用 Selenium 在自定义滚动条上滚动

javascript - 如何使用 AngularJS 检查表中的所有输入是否有效?

javascript - 引导验证在表单提交时不起作用

html - Material字体与HTML元素的对应关系

html - 占位符 z-index firefox 问题

java - Eclipse luna 无法读取 http ://download. eclipse.org/releases/luna/content.xml 处的存储库

java - Eclipse Java 项目错误

android - 错误aapt : Return code 139 try include library

javascript - 无法识别验证消息的源代码