Bug 261852 [context] Separate code into API / SPI / internal
bundles/org.eclipse.e4.ui.workbench/src/org/eclipse/e4/workbench/ui/renderers/swt/PartRenderer.java
protected Object createWidget(Part element) {
		
		for (Iterator iterator = partFactories.iterator(); iterator.hasNext();) {
			PartFactory factory = (PartFactory) iterator.next();
			 
			 
			
			Object newWidget = factory.createWidget(element);
			if (newWidget != null) {
				
				setFactoryFor(element, factory);
				processHandlers(element);
				if (element.getMenu() != null) {
					factory.createMenu(newWidget, element.getMenu());
				}
				if (element.getToolBar() != null) {
					factory.createToolBar(newWidget, element.getToolBar());
				}
				return newWidget;
			}
		}
		
		return null;
	}
	protected void processHandlers(Part<?> element) {
		for (Handler contributedHandler : element.getHandlers()) {
			contributedHandler.setObject(contributionFactory.create(
					contributedHandler.getURI(), context));
		}
	}