Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » Eclipse e4 CSS Export
Eclipse e4 CSS Export [message #1074162] Fri, 26 July 2013 08:04 Go to next message
Dennis Melzer is currently offline Dennis MelzerFriend
Messages: 225
Registered: July 2009
Senior Member
Hello,

i create a css style for my rcp like this tutorial http://www.vogella.com/articles/Eclipse4CSS/article.html. All works fine, if i start the rcp in eclipse, but if i export the the rcp and start the exe no css style is shown. Although the css folder is in the jar. If I unzip the jar then it works.
How i have to build the css bundle?

Thanks Smile
Re: Eclipse e4 CSS Export [message #1074185 is a reply to message #1074162] Fri, 26 July 2013 08:38 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 5487
Registered: July 2009
Senior Member
Can you show us the path you've set to the CSS-File?

Tom

On 26.07.13 10:04, Sir Wayne wrote:
> Hello,
>
> i create a css style for my rcp like this tutorial
> http://www.vogella.com/articles/Eclipse4CSS/article.html. All works
> fine, if i start the rcp in eclipse, but if i export the the rcp and
> start the exe no css style is shown. Although the css folder is in the
> jar. If I unzip the jar then it works.
> How i have to build the css bundle?
>
> Thanks Smile
Re: Eclipse e4 CSS Export [message #1074218 is a reply to message #1074185] Fri, 26 July 2013 09:52 Go to previous messageGo to next message
Dennis Melzer is currently offline Dennis MelzerFriend
Messages: 225
Registered: July 2009
Senior Member
Hi tom,

thanks for the quick reply.

Bundle stucture:
bundle name
- css
-- default.css

<extension
point="org.eclipse.e4.ui.css.swt.theme">
<theme
basestylesheeturi="css/default.css"
id="org.eclipse.e4.ui.css.theme.e4_default"
label="Default Theme">
</theme>
</extension>
Re: Eclipse e4 CSS Export [message #1074220 is a reply to message #1074218] Fri, 26 July 2013 09:59 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 5487
Registered: July 2009
Senior Member
Ok so you are using themes. Can you show us the rest of the plugin.xml?
How does the product extension point look like?

Tom

On 26.07.13 11:52, Sir Wayne wrote:
> Hi tom,
>
> thanks for the quick reply.
>
> Bundle stucture:
> bundle name
> - css
> -- default.css
>
> <extension
> point="org.eclipse.e4.ui.css.swt.theme">
> <theme
> basestylesheeturi="css/default.css"
> id="org.eclipse.e4.ui.css.theme.e4_default"
> label="Default Theme">
> </theme>
> </extension>
Re: Eclipse e4 CSS Export [message #1074255 is a reply to message #1074220] Fri, 26 July 2013 11:28 Go to previous messageGo to next message
Dennis Melzer is currently offline Dennis MelzerFriend
Messages: 225
Registered: July 2009
Senior Member
Sure Smile

<extension
id="product"
point="org.eclipse.core.runtime.products">
<product
application="my.application"
name="My Product">
<property
name="appName"
value="My Name">
</property>
<property
name="startupForegroundColor"
value="000000">
</property>
<property
name="startupMessageRect"
value="12,355,260,20">
</property>
<property
name="startupProgressRect"
value="10,375,400,15">
</property>
<property
name="preferenceCustomization"
value="plugin_customization.ini">
</property>
<property
name="cssTheme"
value="org.eclipse.e4.ui.css.theme.e4_default">
</property>
<property name="introBrandingImage" value="product:icons/32x32.gif"/>
<property name="introTitle" value="RCP"/>
</product>
</extension>
Re: Eclipse e4 CSS Export [message #1074264 is a reply to message #1074255] Fri, 26 July 2013 11:51 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 5487
Registered: July 2009
Senior Member
Looks correct, not sure why this fails when exported. The best idea I
have is that you have upper/lower case problem. This is because on
windows if you load from the filesystem things are case insensitive but
the jar-filesystem is case sensitive.

Tom

On 26.07.13 13:28, Sir Wayne wrote:
> Sure :)
>
> <extension
> id="product"
> point="org.eclipse.core.runtime.products">
> <product
> application="my.application"
> name="My Product">
> <property
> name="appName"
> value="My Name">
> </property>
> <property
> name="startupForegroundColor"
> value="000000">
> </property>
> <property
> name="startupMessageRect"
> value="12,355,260,20">
> </property>
> <property
> name="startupProgressRect"
> value="10,375,400,15">
> </property>
> <property
> name="preferenceCustomization"
> value="plugin_customization.ini">
> </property>
> <property
> name="cssTheme"
> value="org.eclipse.e4.ui.css.theme.e4_default">
> </property>
> <property name="introBrandingImage"
> value="product:icons/32x32.gif"/>
> <property name="introTitle" value="RCP"/>
> </product>
> </extension>
Re: Eclipse e4 CSS Export [message #1074273 is a reply to message #1074264] Fri, 26 July 2013 12:05 Go to previous messageGo to next message
Dennis Melzer is currently offline Dennis MelzerFriend
Messages: 225
Registered: July 2009
Senior Member
It is all lowercase so i have another problem
Re: Eclipse e4 CSS Export [message #1074280 is a reply to message #1074273] Fri, 26 July 2013 12:17 Go to previous message
Dennis Melzer is currently offline Dennis MelzerFriend
Messages: 225
Registered: July 2009
Senior Member
Here the css Fil it is the gtk.css from eclipse. Is the import the problem?


@import url("e4_basestyle.css");



EDIT: The import URI is wrong that can't load in a jar...

[Updated on: Fri, 26 July 2013 22:21]

Report message to a moderator

Previous Topic:create contextual menu in view part
Next Topic:Accessing/updating UI elements in other Parts + best practices?
Goto Forum:
  


Current Time: Sun Dec 21 23:20:54 GMT 2014

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

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