Bug 280499 [CSS] AbstractCSSSWTEngineImpl shouldn't get display for current thread
The constructor AbstractCSSSWTEngineImpl(Display, boolean) is passed in a display. However, it also does: new CSSSWTApplyStylesListener(Display.findDisplay(Thread .currentThread()), this); I don't see why it shouldn't use the display passed in.
bundles/org.eclipse.e4.ui.css.swt/src/org/eclipse/e4/ui/css/swt/engine/AbstractCSSSWTEngineImpl.java
* to SWT widgets.
 */
public abstract class AbstractCSSSWTEngineImpl extends CSSEngineImpl {
	protected Display display;
	public AbstractCSSSWTEngineImpl(Display display) {
		this(display, false);
	}
	public AbstractCSSSWTEngineImpl(Display display, boolean lazyApplyingStyles) {
		this.display = display;
		
		
		super.setElementProvider(SWTElementProvider.INSTANCE);
		
		this.initializeCSSPropertyHandlers();
		
		
		super.registerDynamicPseudoClassHandler("focus",
				DynamicPseudoClassesSWTFocusHandler.INSTANCE);
		
		super.registerDynamicPseudoClassHandler("active",
				DynamicPseudoClassesSWTActiveHandler.INSTANCE);
		
		super.registerDynamicPseudoClassHandler("hover",
				DynamicPseudoClassesSWTHoverHandler.INSTANCE);
		
		super.registerDynamicPseudoClassHandler("selected",
				DynamicPseudoClassesSWTButtonSelectedHandler.INSTANCE);
		
		
		super.registerCSSValueConverter(CSSValueSWTRGBConverterImpl.INSTANCE);