Bug 279939 [CSS] Remove CSSSWTLazyHandlerEngineImpl and packages
There are no references to CSSSWTLazyHandlerEngineImpl, we don't ever instantiate the CSSSWTLazyHandlerEngineImpl, either in our examples or tests. Do we still need/want it? It brings with it the following packages which presumably would also be deleted: .registerPackage("org.eclipse.e4.ui.css.swt.properties.css2.lazy.classification"); .registerPackage("org.eclipse.e4.ui.css.swt.properties.css2.lazy.border"); .registerPackage("org.eclipse.e4.ui.css.swt.properties.css2.lazy.font"); .registerPackage("org.eclipse.e4.ui.css.swt.properties.css2.lazy.background"); .registerPackage("org.eclipse.e4.ui.css.swt.properties.css2.lazy.text");
bundles/org.eclipse.e4.ui.css.swt/src/org/eclipse/e4/ui/css/swt/properties/css2/lazy/background/CSSPropertyBackgroundColorHandler.java
AbstractCSSPropertySWTHandler {
	public void applyCSSProperty(Control control, String property,
			CSSValue value, String pseudo, CSSEngine engine) throws Exception {
		if (value.getCssValueType() == CSSValue.CSS_PRIMITIVE_VALUE) {
			Color newColor = (Color) engine.convert(value, Color.class, control
					.getDisplay());
			if (control instanceof CTabFolder && "selected".equals(pseudo)) {
				((CTabFolder) control).setSelectionBackground(newColor);
			} else {
				control.setBackground(newColor);
			}
		} else if (value.getCssValueType() == CSSValue.CSS_VALUE_LIST) {
			Gradient grad = (Gradient) engine.convert(value, Gradient.class,
					control.getDisplay());
			GradientBackgroundListener.handle(control, grad);
		}
	}
	public String retrieveCSSProperty(Control control, String property, String pseudo, 
			CSSEngine engine) throws Exception {
		Color color = control.getBackground();
		return engine.convert(color, Color.class, null);
	}
}