Bug 299554 Application.xmi without Window
bundles/org.eclipse.e4.ui.workbench.swt/src/org/eclipse/e4/ui/workbench/swt/internal/PartRenderingEngine.java
public void run() {
						p.getShell().layout(changed, SWT.CHANGED | SWT.DEFER);
					}
				});
				
				if (element instanceof MContext) {
					IEclipseContext ec = ((MContext) element).getContext();
					IEclipseContext pc = getContext(element.getParent());
					ec.set(IContextConstants.PARENT, pc);
				}
				return c;
			}
		}
		
		Object newWidget = createWidget(element, parent);
		
		if (newWidget != null) {
			AbstractPartRenderer factory = getFactoryFor(element);
			
			if (element.getId() != null && element.getId().length() > 0
					&& newWidget instanceof Control) {
				Object implementation = null;
				if (element instanceof MContribution)
					implementation = ((MContribution) element).getObject();
				
				RenderingRecord record = renderedWidgets.get(element.getId());
				if (record == null)
					record = new RenderingRecord((Control) newWidget, factory,
							implementation);
				record.refCount++;