| CSS Styling for Nebula Widgets [message #792687] |
Tue, 07 February 2012 04:29  |
Tom K. Messages: 22 Registered: July 2009 |
Junior Member |
|
|
We are using a Grid and we thought it would be great if we could use the new e4 css features to style cells..
Has anybody done this before or do you have some ideas how it could be easily done...
|
|
|
|
|
|
| Re: CSS Styling for Nebula Widgets [message #794434 is a reply to message #792731] |
Thu, 09 February 2012 04:30   |
Tom K. Messages: 22 Registered: July 2009 |
Junior Member |
|
|
To keep you updated:
We used now a kind of workaround to render cells with the css values
In the CellLabelProvider we used the org.eclipse.e4.ui.css.core.engine.CSSEngine to get the current styles of our Cells (Class GridItem in the css)
What I'am not happy about, is that we cannot get the CSSEngine without casting down to a internal class:
public CSSBaseCellLabelProvider(IThemeEngine engine, StructuredViewer viewer) {
this.cssengine = ((ThemeEngine) engine).getCSSEngine();
}
Is there coming a proper solution for cell specific rendering with CSS on the Grid ? Something like a org.eclipse.jface.viewers.StyledCellLabelProvider
but adapted for Nebula and e4 css?
[Updated on: Thu, 09 February 2012 04:32] Report message to a moderator
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.01749 seconds