Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 19:10 Go to next message
Mateusz Wegrzynkiewicz is currently offline Mateusz WegrzynkiewiczFriend
Messages: 1
Registered: April 2015
Junior Member
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 16:50]

Report message to a moderator

Re: Problem with CSS: Interface expected [message #1694132 is a reply to message #1693854] Thu, 30 April 2015 19:13 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6600
Registered: July 2009
Senior Member
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 05:51 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6600
Registered: July 2009
Senior Member
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 19:31 Go to previous message
Palvan Rozyyev is currently offline Palvan RozyyevFriend
Messages: 2
Registered: March 2017
Junior Member
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: Tue Sep 21 09:27:42 GMT 2021

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

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

Back to the top