Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 318798
Collapse All | Expand All

(-)src/org/eclipse/e4/ui/css/swt/properties/custom/CSSPropertyTabRendererSWTHandler.java (-6 / +9 lines)
Lines 35-46 Link Here
35
			
35
			
36
				Object cssContext = control.getDisplay().getData("org.eclipse.e4.ui.css.context");
36
				Object cssContext = control.getDisplay().getData("org.eclipse.e4.ui.css.context");
37
				if (cssContext != null && cssContext instanceof IEclipseContext) {
37
				if (cssContext != null && cssContext instanceof IEclipseContext) {
38
					IEclipseContext context = (IEclipseContext) cssContext;
38
					if (rendURL != null && !rendURL.equals(control.getData("org.eclipse.e4.ui.css.rendererURL"))) {
39
					context.set(CTabFolder.class.getName(), control);
39
						control.setData("org.eclipse.e4.ui.css.rendererURL", rendURL);
40
					IContributionFactory factory = (IContributionFactory) context.get(IContributionFactory.class.getName());
40
						IEclipseContext context = (IEclipseContext) cssContext;
41
					Object rend = factory.create(rendURL, context);
41
						context.set(CTabFolder.class.getName(), control);
42
					if (rend != null && rend instanceof CTabFolderRenderer){
42
						IContributionFactory factory = (IContributionFactory) context.get(IContributionFactory.class.getName());
43
						((CTabFolder) control).setRenderer((CTabFolderRenderer)rend);
43
						Object rend = factory.create(rendURL, context);
44
						if (rend != null && rend instanceof CTabFolderRenderer){
45
							((CTabFolder) control).setRenderer((CTabFolderRenderer)rend);
46
						}
44
					}
47
					}
45
				}
48
				}
46
			} else {
49
			} else {

Return to bug 318798