Skip to main content



      Home
Home » Eclipse Projects » e(fx)clipse » Problem with CSS: Interface expected(syntax error: Interface expected)
Problem with CSS: Interface expected [message #1693854] Tue, 28 April 2015 15:10 Go to next message
Eclipse UserFriend
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

Re: Problem with CSS: Interface expected [message #1694132 is a reply to message #1693854] Thu, 30 April 2015 15:13 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

I can not reproduce this in 2.0 codebase :-( - what type of project are
you in plugin or simple java?

Tom

On 29.04.15 14:47, Mateusz Wegrzynkiewicz wrote:
> root{
> -fx-font-size: 16pt;
> -fx-font-family: "Courier New";
> -fx-base: rgb(132, 145, 47);
> -fx-background: rgb(225, 228, 203);
> }
Re: Problem with CSS: Interface expected [message #1694262 is a reply to message #1694132] Mon, 04 May 2015 01:51 Go to previous messageGo to next message
Eclipse UserFriend
Is there anything in the error log?
Re: Problem with CSS: Interface expected [message #1756354 is a reply to message #1694262] Wed, 15 March 2017 15:31 Go to previous message
Eclipse UserFriend
I'm encountering the same problem. Is there any solutions?
Previous Topic:Syntax error on token ".", interface expected
Next Topic:Dynamic Component, Preview Problem
Goto Forum:
  


Current Time: Sun Jul 27 02:28:06 EDT 2025

Powered by FUDForum. Page generated in 0.04920 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top