How to disable css warning “Unknown property” in Eclipse Mars?

Tags: css,eclipse,validation,xtext,efxclipse

Problem :

I get many "Unknown property" warnings in my css files.

This might be due to the fact that I have e(fx)clipse 2.0 and the Eclipse Web Developer Tools installed.

If I open the css files with the e(fx)clipse css editor and add /SuppressWarnings/ the warning icon changes its color (see figure below).


  • the Problems view still shows the warning and the default css Editor shows the warning, too.
  • I do not want to add /SuppressWarnings/ since the css files are automatically generated with WinLess.

How can I disable the "Unknown property" warnings for specific files or at all?

My css files are not located under "src" but under a folder "help". That help folder contains html files for my Eclipse plugin and corresponding css files. =>Those files are not used for JavaFx/e(fx)clipse.

Here is a related article that did not really help me but might give you further information:

Screenshot that shows the warnings and the Problem view (click to enlarge) enter image description here

Solution :

I filed an e(fx)clipse bug [1] and uninstalled e(fx)clipse for the time being.

The main reason why I had installed e(fx)clipse at the beginning was to get rid of the access restriction warnings related to jfxrt.jar (also see [2]). Now I use additonal access rules for the JRE container in my classpath file instead of using e(fx)eclipse:

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


[2] Using JavaFX in JRE 8

    CSS Howto..

    How to create a WoW-like cooldown effect?

    How to cancel/disable hover and active effects coming from another CSS library?

    CSS: how to get scrollbars responsive for div inside container when user resizes it upwards

    How to display a list in two rows?

    bootstrap collapse to show a div it work but how to make it didn't affect side items?

    How is the “greater than” or “>” character used in CSS?

    how to i target a another div with jquery or css

    How to specify background image height in div Container

    How do you manage css stylesheet files and inclusions in a large ruby on rails application?

    How to add scrollbar in this CSS javascript pop up window?

    How to blur background img - css?

    How can I memorize all CSS shorthands?

    How to add Video from project directory in the background of Div

    How to change background while changing visiblity?

    How can I register a css page from an ascx control?

    How do I style a circular vertically-loading progress bar?

    CSS: how to “plot” invisible text over an image?

    How to remove the “Facebook social plugin” text?

    How to use the float:left property in CSS without having the trouble I have?

    How to check if all CSS files have been downloaded to insert HTML using JavaScript?

    How do I center these three blocks horizontally?

    How can I differentiate Safari and Chrome in CSS?

    How to hide div on swipe in Angular

    How to manage multi tenant web portal css using Asp.Net MVC

    How to make a CSS file valid?

    How to add the very last border on the sub menu items

    Sencha Touch 2: How to handle custom css files while production build?

    How to animate an unknown number of items in sequence using css animations?

    How to hide `
  • ` drop down menu in Nav bar in Desktop view?
  • how to make two functionality in one button.CSS BOOTSTRAP