Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » CSS class is applied, but not propagated SWT attributes
CSS class is applied, but not propagated SWT attributes [message #1005608] Sun, 27 January 2013 12:51 Go to next message
Alex Kipling is currently offline Alex KiplingFriend
Messages: 258
Registered: July 2012
Senior Member
Hello,
I applied a CSS class to my Shell, by using setData.

The CSS class was applied correctly.

I could use the class as CSS selector to apply the attribute background-color:red correctly.

The background-color:red; was propagated to all children correctly.

The issue is, that even the elements with the css attribute "background-color:red" have another backgrounds, e.g. white on the screenshot. Why does it happen?
Which mechanism is responsible for translating the css attributes to SWT attributes?


http://i.imgur.com/MUzL6Bf.png
Re: CSS class is applied, but not propagated SWT attributes [message #1005677 is a reply to message #1005608] Mon, 28 January 2013 09:06 Go to previous messageGo to next message
Alex Kipling is currently offline Alex KiplingFriend
Messages: 258
Registered: July 2012
Senior Member
Injecting and using the IStylingEngine helped.
It seems to register the styled objects somewhere, so that just adding the CSS class by setData - is not enough.
Re: CSS class is applied, but not propagated SWT attributes [message #1005709 is a reply to message #1005677] Mon, 28 January 2013 11:04 Go to previous message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 5487
Registered: July 2009
Senior Member
Take a look what it does. IIRC it delivers an SWT.Skin event

Tom

Am 28.01.13 10:06, schrieb Alex Kipling:
> Injecting and using the IStylingEngine helped.
> It seems to register the styled objects somewhere, so that just adding
> the CSS class by setData - is not enough.
Previous Topic:How to connect to DB / Legacy system in parallel to eclipse start?
Next Topic:Localization and extension-point schema definition errors
Goto Forum:
  


Current Time: Fri Dec 19 22:41:47 GMT 2014

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

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