SWT Exception with Neon Linux GTK3 dark theme setting [message #1752688] |
Thu, 26 January 2017 03:23  |
Eclipse User |
|
|
|
I have an RCP application and the Linux GTK3 version previously built on Mars ran with a Dark theme.
I have now moved to Neon and rebuilt with
org.eclipse.swt.gtk.linux.x86_64_3.105.2.v20161122-0613.jar
org.eclipse.e4.ui.css.swt_0.12.100.v20160517-1505.jar
org.eclipse.swt_3.105.2.v20161122-0613.jar
org.eclipse.e4.ui.css.swt.theme_0.10.100.v20160523-0836.jar
When the user selects the option to set the theme to Dark, which results in a call to the IThemeEngine setTheme method with an argument being the extension with stylesheet URI set to one of the standard style sheets:
platform:/plugin/org.eclipse.ui.themes/css/e4-dark.css
the result is a "Graphic is disposed" SWT Exception (see below).
The same happens when it tries the standard e4_default_gtk.css style sheet.
Some other standard style sheets work.
Is there something wrong with what I am doing?
org.eclipse.swt.SWTException: Graphic is disposed
at org.eclipse.swt.SWT.error(SWT.java:4533)
at org.eclipse.swt.SWT.error(SWT.java:4448)
at org.eclipse.swt.SWT.error(SWT.java:4419)
at org.eclipse.swt.graphics.Color.getRed(Color.java:299)
at org.eclipse.e4.ui.workbench.renderers.swt.CTabRendering.setOuterKeyline(CTabRendering.java:1009)
at org.eclipse.e4.ui.css.swt.properties.custom.CSSPropertyOuterKeylineSWTHandler.applyCSSProperty(CSSPropertyOuterKeylineSWTHandler.java:37)
at org.eclipse.e4.ui.css.swt.properties.AbstractCSSPropertySWTHandler.applyCSSProperty(AbstractCSSPropertySWTHandler.java:33)
at org.eclipse.e4.ui.css.core.impl.engine.AbstractCSSEngine.applyCSSProperty(AbstractCSSEngine.java:762)
at org.eclipse.e4.ui.css.core.impl.engine.AbstractCSSEngine.applyStyleDeclaration(AbstractCSSEngine.java:548)
at org.eclipse.e4.ui.css.core.impl.engine.AbstractCSSEngine.applyStyles(AbstractCSSEngine.java:414)
at org.eclipse.e4.ui.css.core.impl.engine.AbstractCSSEngine.applyStyles(AbstractCSSEngine.java:363)
at org.eclipse.e4.ui.css.core.impl.engine.AbstractCSSEngine.applyStyles(AbstractCSSEngine.java:439)
at org.eclipse.e4.ui.css.core.impl.engine.AbstractCSSEngine.applyStyles(AbstractCSSEngine.java:363)
at org.eclipse.e4.ui.css.core.impl.engine.AbstractCSSEngine.applyStyles(AbstractCSSEngine.java:439)
at org.eclipse.e4.ui.css.core.impl.engine.AbstractCSSEngine.applyStyles(AbstractCSSEngine.java:363)
at org.eclipse.e4.ui.css.core.impl.engine.AbstractCSSEngine.applyStyles(AbstractCSSEngine.java:439)
at org.eclipse.e4.ui.css.core.impl.engine.AbstractCSSEngine.applyStyles(AbstractCSSEngine.java:363)
at org.eclipse.e4.ui.css.core.impl.engine.AbstractCSSEngine.applyStyles(AbstractCSSEngine.java:439)
at org.eclipse.e4.ui.css.core.impl.engine.AbstractCSSEngine.applyStyles(AbstractCSSEngine.java:363)
at org.eclipse.e4.ui.css.core.impl.engine.AbstractCSSEngine.applyStyles(AbstractCSSEngine.java:439)
at org.eclipse.e4.ui.css.core.impl.engine.AbstractCSSEngine.applyStyles(AbstractCSSEngine.java:363)
at org.eclipse.e4.ui.css.swt.engine.CSSSWTEngineImpl.reapply(CSSSWTEngineImpl.java:78)
|
|
|
|
Powered by
FUDForum. Page generated in 0.29570 seconds