Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » Is it possible to leverage CSS styling in a legacy RCP application?
Is it possible to leverage CSS styling in a legacy RCP application? [message #481557] Fri, 21 August 2009 13:44 Go to next message
Mickael Istria is currently offline Mickael Istria
Messages: 764
Registered: July 2009
Location: Grenoble, France
Senior Member
Hello,

Thanks to latest webinars and blog entries about e4, I am making some tests to check whether there are parts of e4 that I could already use in my RCP app. I am starting by trying to enable CSS styling in my app.

I took the example of the e4 tech preview, which is actually the "org.eclipse.e4.ui.legacy.workbench" product. This product does use the regular "org.eclipse.ui.ide.workbench" application and a CSS sheet.
Then I tried the same thing for my RCP application (defining a new product based on e4 with my legacy application and adding an applicationCSS to its definition), but I did not noticed any change in UI.

Is the workbench used in e4 0.9 the "real" legacy workbench ? What could explain that the CSS applies to IDE and not to my app ? I did not see in the org.eclipse.ui.ide_3.100 plugin any dependency to org.eclipse.e4...

Mickael
Re: Is it possible to leverage CSS styling in a legacy RCP application? [message #481657 is a reply to message #481557] Sat, 22 August 2009 11:28 Go to previous message
Remy Suen is currently offline Remy Suen
Messages: 462
Registered: July 2009
Senior Member
On Fri, 21 Aug 2009 15:44:18 +0200, Mickael Istria wrote:
> Then
> I tried the same thing for my RCP application (defining a new product
> based on e4 with my legacy application and adding an applicationCSS to
> its definition), but I did not noticed any change in UI.

For starters you could try to use breakpoints and see if the
CSSSWTEngineImpl is even instantiated or whether its methods are even
being called.

> Is the workbench used in e4 0.9 the "real" legacy workbench ? What could
> explain that the CSS applies to IDE and not to my app ? I did not see in
> the org.eclipse.ui.ide_3.100 plugin any dependency to org.eclipse.e4...

I'm not sure I understand but there is no reason for the
org.eclipse.ui.ide bundle to depend on the e4 stuff considering that the
bundle needs to run on 3.x.

You may want to look in our /cvsroot/eclipse CVS repository and take a
look at the 3.x example.
e4/org.eclipse.e4.ui/examples/org.eclipse.e4.ui.examples.css .rcp

It is not complete yet and I suggest you follow bug 278869 and/or ping
their for updates.
https://bugs.eclipse.org/bugs/show_bug.cgi?id=278869

Regards,
Remy
Re: Is it possible to leverage CSS styling in a legacy RCP application? [message #562661 is a reply to message #481557] Sat, 22 August 2009 11:28 Go to previous message
Remy Suen is currently offline Remy Suen
Messages: 462
Registered: July 2009
Senior Member
On Fri, 21 Aug 2009 15:44:18 +0200, Mickael Istria wrote:
> Then
> I tried the same thing for my RCP application (defining a new product
> based on e4 with my legacy application and adding an applicationCSS to
> its definition), but I did not noticed any change in UI.

For starters you could try to use breakpoints and see if the
CSSSWTEngineImpl is even instantiated or whether its methods are even
being called.

> Is the workbench used in e4 0.9 the "real" legacy workbench ? What could
> explain that the CSS applies to IDE and not to my app ? I did not see in
> the org.eclipse.ui.ide_3.100 plugin any dependency to org.eclipse.e4...

I'm not sure I understand but there is no reason for the
org.eclipse.ui.ide bundle to depend on the e4 stuff considering that the
bundle needs to run on 3.x.

You may want to look in our /cvsroot/eclipse CVS repository and take a
look at the 3.x example.
e4/org.eclipse.e4.ui/examples/org.eclipse.e4.ui.examples.css .rcp

It is not complete yet and I suggest you follow bug 278869 and/or ping
their for updates.
https://bugs.eclipse.org/bugs/show_bug.cgi?id=278869

Regards,
Remy
Previous Topic:CSS styling - Border (e4 contacts demo)
Next Topic:CSS Operating System Defaults
Goto Forum:
  


Current Time: Thu Oct 02 08:38:25 GMT 2014

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

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