Skip to main content



      Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » SWT Exception with Neon Linux GTK3 dark theme setting(Attempt to set Dark theme in RCP application on Linux with GTK3 gets SWT Exception)
SWT Exception with Neon Linux GTK3 dark theme setting [message #1752688] Thu, 26 January 2017 03:23 Go to next message
Eclipse UserFriend
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)


Re: SWT Exception with Neon Linux GTK3 dark theme setting [message #1752695 is a reply to message #1752688] Thu, 26 January 2017 03:55 Go to previous message
Eclipse UserFriend
I should have added that the Windows 10 version of my RCP application works for all the style sheets. It is built with:

org.eclipse.swt.win32.win32.x86_64_3.105.2.v20161122-0613.jar

Previous Topic:SWT Table Object vs. Linux
Next Topic:HIDE_SELECTION works the oposite to the doc description
Goto Forum:
  


Current Time: Sat Aug 30 08:40:22 EDT 2025

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

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

Back to the top