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).

However:

  • 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: https://www.eclipse.org/forums/index.php/t/515810/

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">
        <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 Howto..

    how to resolve border-radius property issue in all versions of browsers? [duplicate]

    How to detect the form is blank or not by jQuery

    How to add a shadow for underline (bottom border) in css

    How can I vertically align the text in an anchor tag?

    css and basket: how to do an “always visible” basket?

    How to do page / content transitions

    [SOLVED]How to generate dynamic external link?

    Change jQuery slideshow script to rotate background image defined in css class

    How to change css position left to right using jquery?

    how to render tilted images in html or css or javascript ..?

    How can I force browsers to print background images in CSS?

    How to write a CSS selector that works on nested divs and selects the closest match?

    How do I add CSS to part of another object?

    How to know values of all attributes and properties of a tag element in HTML

    How to assign C# variable to CSS class variable in ASP.NET MVC ActionLink

    How do I change the color of Semantic UI icons?

    How can I use javascript, html and css to make an image a button, which can do the following?

    How to put a canvas on an image?

    How to create a completely flexible piano keyboard with HTML and CSS

    How to use jQuery to set min-height the same as window

    How to include a static page with custom css and js files in a Rails application

    How to align a HTML definition list (
    ) horizontally without limiting term or definition in height?

    How to output different images depend on user screen?

    How to align text and images on one line and position those to the left and/or right?

    How to fix incorrect element size on browser scaling?

    CSS - How to align 2 fields into 1 row?

    How to display .entry-content CSS on Wordpress home page?

    How to display the :after content outside element

    how to get rid of the border-bottom by css?

    How to set css cursor value to variable within jQuery?