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
super.registerCSSValueConverter(CSSValueSWTColorConverterImpl.INSTANCE);
		
		super
				.registerCSSValueConverter(CSSValueSWTGradientConverterImpl.INSTANCE);
		
		super
				.registerCSSValueConverter(CSSValueSWTCursorConverterImpl.INSTANCE);
		
		super.registerCSSValueConverter(CSSValueSWTFontConverterImpl.INSTANCE);
		
		super
				.registerCSSValueConverter(CSSValueSWTFontDataConverterImpl.INSTANCE);
		
		super.registerCSSValueConverter(CSSValueSWTImageConverterImpl.INSTANCE);
		if (lazyApplyingStyles) {
			new CSSSWTApplyStylesListener(Display.findDisplay(Thread
					.currentThread()), this);
		}
	}
	protected abstract void initializeCSSPropertyHandlers();
	public IResourcesRegistry getResourcesRegistry() {
		IResourcesRegistry resourcesRegistry = super.getResourcesRegistry();
		if (resourcesRegistry == null) {
			super.setResourcesRegistry(new SWTResourcesRegistry(display));
		}
		return super.getResourcesRegistry();
	}
}