Problem with CSS: Interface expected [message #1693854] |
Tue, 28 April 2015 15:10  |
Eclipse User |
|
|
|
Hi all!
I have recently installed e(fx)clipse and everything seems to be ok, but I keep getting an error when trying to write a CSS code in e(fx)clipse CSS Editor:
Syntax error on token ".", interface expected
It happens when I use "." to indicate class selector, like:
.root{
-fx-font-size: 16pt;
-fx-font-family: "Courier New";
-fx-base: rgb(132, 145, 47);
-fx-background: rgb(225, 228, 203);
}
If I leave the dot before the selector, error looks like that:
Syntax error on token "root", interface expected before this token
I have no idea what's going on. Normal CSS works, autocomplete in e(fx)clipse works as well. The only thing is this strange syntax error.
My setup:
Eclipse Luna 4.4.2.M20150204-1700
Windows 7 64-bit
Java 1.8.0_45-b14
e(fx)clipse IDE 1.2.0.201501301049
Any help would be highly appreciated!
Edit: I've discovered, that the problem is related to projects created with the e(fx)clipse tool in this way: New -> Other -> JavaFX Project. When I edit CSS files in e.g. Web Projects, everything works fine, even with the e(fx)clipse CSS editor. It's probably some kind of Content Type error, but I'm just guessing.
[Updated on: Wed, 29 April 2015 12:50] by Moderator
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03190 seconds