Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Urgent Help needed regarding CSS mechanism in rcp application
Urgent Help needed regarding CSS mechanism in rcp application [message #1062352] Fri, 07 June 2013 11:02 Go to next message
SD Khan is currently offline SD KhanFriend
Messages: 63
Registered: May 2013
Hi all,

I have done the following steps to create an rcp application

1. Created a rcp application (3.x)

2. created extension point "org.eclipse.e4.ui.css.swt.theme" and added two themes in it and set

the respective css files for each theme.

3. Added a ViewerPreferencePage, which given the option to change theme.

Now, when i change theme , it work's fine and applied on all the swt controls which i have

specified in css file,

Now i have defined my own selector in the css file like "MySelector" and then specified it's

like this


i have debugged the code, the main class handling this is the "ThemeEngine", which reads this, one

thing for sure is that engine successfully read the whole css file including my own custom

selector, now what i want's is to get this selector and it's properties and values from the css

engine programmatically

Any idea/help/hint/clue/suggestion will be appreciated.

Re: Urgent Help needed regarding CSS mechanism in rcp application [message #1063119 is a reply to message #1062352] Wed, 12 June 2013 11:54 Go to previous message
Brian de Alwis is currently offline Brian de AlwisFriend
Messages: 741
Registered: January 2012
Senior Member

Check out the CSsRenderingUtils class in E4: although it's internal, it shows how you can query the CSS engine to obtain the CSS rules to be applied for a particular widget.


Eclipse Platform committer. Ask me about Eclipse support, training, and consulting.
Previous Topic:new Image(ImageData) can never be "fast" on Kepler/Linux64/Gtk ?
Next Topic:How to automate Open Office via OleAutomation?
Goto Forum:

Current Time: Sun May 20 12:16:53 GMT 2018

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

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

Back to the top