Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » external css file(load external css file at runtime)
external css file [message #761320] Tue, 06 December 2011 09:36 Go to next message
Thomas Kölling is currently offline Thomas Kölling
Messages: 45
Registered: December 2011
Location: Munich
Member
Hey guy's

i'm currently evaluating the e4 platform for our new development project. I've played around a bit with the css theme functionality and it works "okay".
But if I export the product, the css files seems to be "compiled" in the application. i currently can't find em in the exported folder. the application seems to working right okay, inclusive the theme switching. so how is it possible to say the e4 rcp application, that it should use an user (not developer) specific css file at runtime?

greetings, thomas
Re: external css file [message #761373 is a reply to message #761320] Tue, 06 December 2011 11:23 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas Schindl
Messages: 5328
Registered: July 2009
Senior Member
Well yes the css is like in any other file packaged into the jar-File.

So now the questions what you'd like the user to allow:

a) modify an existing theme, then simply avoid packaging your plugin
while exporting (IIRC this could be done when defining a feature)

b) add new themes in a simply way: You could add an Addon which watches
a certain directory where users can drop css-Files and your Addon
reads them and calls IThemeEngine#registerTheme() which is the same
the extension point is doing. The CSS-Engine should does support
file:// uris so this should be no problem.

Tom

Am 06.12.11 10:36, schrieb ThomasK:
> Hey guy's
>
> i'm currently evaluating the e4 platform for our new development
> project. I've played around a bit with the css theme functionality and
> it works "okay". But if I export the product, the css files seems to be
> "compiled" in the application. i currently can't find em in the exported
> folder. the application seems to working right okay, inclusive the theme
> switching. so how is it possible to say the e4 rcp application, that it
> should use an user (not developer) specific css file at runtime?
>
> greetings, thomas
Re: external css file [message #761374 is a reply to message #761373] Tue, 06 December 2011 11:29 Go to previous message
Thomas Kölling is currently offline Thomas Kölling
Messages: 45
Registered: December 2011
Location: Munich
Member
Hi Tom,

thank you for your time and for the right direction Smile
i think i try both of your suggestions

thomas
Previous Topic:Going forward, how to handle extensions in a pure e4 app?
Next Topic:Inject the MMenu in a Handler
Goto Forum:
  


Current Time: Fri Sep 19 11:55:12 GMT 2014

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

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