Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » e(fx)clipse » Difficulty contributing CSS files
Difficulty contributing CSS files [message #1426927] Fri, 19 September 2014 12:41 Go to next message
Thomas Elskens is currently offline Thomas ElskensFriend
Messages: 159
Registered: September 2014
Location: Brussels - Belgium
Senior Member
Hello,

I'm wondering how I should contribute a CSS file to an efx4 project ?

I tried contributing by means of an extension to org.eclipse.fx.ui.theme, but this doesn't seem to work (see snip in attachment).

Standard JavaFX-way of adding the sheet (with "getStylesheets().add()") doesn't seem to work either.

Am I overlooking something ?

Thanks a lot in advance,

Thomas
Re: Difficulty contributing CSS files [message #1427106 is a reply to message #1426927] Fri, 19 September 2014 18:19 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
The way you are doing it is the way to go. I just tried locally and it
seems to work. You can put a break point into DefWindowRenderer
somewhere around line 400 the styles are added the scene - look which
ones are added.

Your statement about getStylesheets().add() makes me believe that your
css is simply invalid.

Tom

On 19.09.14 14:41, Thomas Elskens wrote:
> Hello,
>
> I'm wondering how I should contribute a CSS file to an efx4 project ?
>
> I tried contributing by means of an extension to org.eclipse.fx.ui.theme, but this doesn't seem to work (see snip in attachment).
>
> Standard JavaFX-way of adding the sheet (with "getStylesheets().add()") doesn't seem to work either.
>
> Am I overlooking something ?
>
> Thanks a lot in advance,
>
> Thomas
>
Re: Difficulty contributing CSS files [message #1428723 is a reply to message #1427106] Mon, 22 September 2014 08:36 Go to previous message
Thomas Elskens is currently offline Thomas ElskensFriend
Messages: 159
Registered: September 2014
Location: Brussels - Belgium
Senior Member
Your assumption was the right one : there was indeed a little error in the stylesheet (I'm not only new to RCP, but to JavaFX as well...).

Using the extension works perfectly now.

Thank you for answering !

Thomas
Previous Topic:How to export an e(fx)clipse e4-Media-Application
Next Topic:Component definition XMLs not found in bundle org.eclipse.fx.ui.di
Goto Forum:
  


Current Time: Sun Jan 26 03:10:15 GMT 2025

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

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

Back to the top