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
public Object createGui(Part element) {
		if (!element.isVisible())
			return null;
		
		
		Object newWidget = createWidget(element);
			
		
		if (newWidget != null) {
			
			element.setWidget(newWidget);
			
			
			PartFactory factory = getFactoryFor(element);
			factory.bindWidget(element, newWidget);
			hookControllerLogic(element);
			factory.processContents(element);
			factory.postProcess(element);
			
			
			if (element.getParent() instanceof Part) {
				Part parentElement = (Part) element.getParent();
				PartFactory parentFactory = getFactoryFor(parentElement);
				parentFactory.childAdded(parentElement, element);
			}
		}
		
		return newWidget;
	}