Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » e(fx)clipse » Warning from CssStyleHelper
Warning from CssStyleHelper [message #1610197] Tue, 10 February 2015 16:26 Go to next message
Thomas Elskens is currently offline Thomas ElskensFriend
Messages: 159
Registered: September 2014
Location: Brussels - Belgium
Senior Member
Hello,

This problem could be not related to efxclipse at all, but I prefer to make sure.

I was trying out the FontAwesomeFX library to provide an icon for my EMF.Edit Itemprovider, like this :

/**
	 * @generated NOT
	 */
	@Override
	public Object getImage(Object object)
	{
		//return overlayImage(object, getResourceLocator().getImage("full/obj16/Employer")) ;
		return overlayImage(object, AwesomeDude.createIconLabel(AwesomeIcon.USER)) ;
	}


This works (the only thing needed was to place the bundle org.eclipse.fx.javafx on the classpath of the FontAwesomeFX dependency), but every time I shut down my application, I now get the following warning:

Quote:

Feb 10, 2015 4:58:26 PM javafx.scene.CssStyleHelper calculateValue
WARNING: Could not resolve '-fx-text-background-color' while resolving lookups for '-fx-text-fill' from rule '*.label' in stylesheet jar:file:/C:/Program%20Files/Java/jdk1.8.0_40/jre/lib/ext/jfxrt.jar!/com/sun/javafx/scene/control/skin/modena/modena.bss


The problem is the same with jdk1.8.0_31 and jdk1.8.0_40.

Anybody an idea what this means ? And perhaps more related to this external FontawesomeFX library ?

Thomas Elskens
Re: Warning from CssStyleHelper [message #1610407 is a reply to message #1610197] Tue, 10 February 2015 19:37 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
This is a warning of JavaFX when it is unable to calculate color values.
I've sometimes seen this messages and I know David (css guys for JavaFX)
has fixed some bugs in this regard but generally they are hard to track
down.

BTW did you know that there we have a control which allows is able to
render icon-fonts like font-awesome.

The control is part of FontIconView unfortunately we are not yet able to
ship the font-awesome support directly from Eclipse.org (we have an
outstanding CQ) but you can grab that from
https://github.com/BestSolution-at/efxclipse_addons/tree/master/bundles.

I hope that we can ship with direct support in 2.0.0!

Tom

On 10.02.15 17:26, Thomas Elskens wrote:
> Hello,
>
> This problem could be not related to efxclipse at all, but I prefer to
> make sure.
> I was trying out the FontAwesomeFX library to provide an icon for my
> EMF.Edit Itemprovider, like this :
>
>
> /**
> * @generated NOT
> */
> @Override
> public Object getImage(Object object)
> {
> //return overlayImage(object,
> getResourceLocator().getImage("full/obj16/Employer")) ;
> return overlayImage(object,
> AwesomeDude.createIconLabel(AwesomeIcon.USER)) ;
> }
>
>
> This works (the only thing needed was to place the bundle
> org.eclipse.fx.javafx on the classpath of the FontAwesomeFX dependency),
> but every time I shut down my application, I now get the following warning:
>
> Quote:
>> Feb 10, 2015 4:58:26 PM javafx.scene.CssStyleHelper calculateValue
>> WARNING: Could not resolve '-fx-text-background-color' while resolving
>> lookups for '-fx-text-fill' from rule '*.label' in stylesheet
>> jar:file:/C:/Program%20Files/Java/jdk1.8.0_40/jre/lib/ext/jfxrt.jar!/com/sun/javafx/scene/control/skin/modena/modena.bss
>>
>
>
> The problem is the same with jdk1.8.0_31 and jdk1.8.0_40.
> Anybody an idea what this means ? And perhaps more related to this
> external FontawesomeFX library ?
> Thomas Elskens
Re: Warning from CssStyleHelper [message #1611602 is a reply to message #1610407] Wed, 11 February 2015 13:35 Go to previous message
Thomas Elskens is currently offline Thomas ElskensFriend
Messages: 159
Registered: September 2014
Location: Brussels - Belgium
Senior Member
Nice to know, thanks a lot !
Previous Topic:Using ILocaleChangeService
Next Topic:Build e(fx)clipse Project not executing
Goto Forum:
  


Current Time: Sun Jan 26 03:14:52 GMT 2025

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

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

Back to the top