Bug 299272 Renderer cannot handle an MPart with a null label
java.lang.IllegalArgumentException: Argument cannot be null at org.eclipse.swt.SWT.error(SWT.java:4049) at org.eclipse.swt.SWT.error(SWT.java:3983) at org.eclipse.swt.SWT.error(SWT.java:3954) at org.eclipse.e4.ui.widgets.CTabItem.setText(CTabItem.java:1013) at org.eclipse.e4.workbench.ui.renderers.swt.StackRenderer.showChild(StackRenderer.java:296) at org.eclipse.e4.workbench.ui.renderers.swt.LazyStackRenderer.processContents(LazyStackRenderer.java:92) at org.eclipse.e4.ui.workbench.swt.internal.PartRenderingEngine.createGui(PartRenderingEngine.java:300) at org.eclipse.e4.ui.workbench.swt.internal.PartRenderingEngine.createGui(PartRenderingEngine.java:349) at org.eclipse.e4.workbench.ui.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:54) at org.eclipse.e4.ui.workbench.swt.internal.PartRenderingEngine.createGui(PartRenderingEngine.java:300) at org.eclipse.e4.ui.workbench.swt.internal.PartRenderingEngine.createGui(PartRenderingEngine.java:349) at org.eclipse.e4.workbench.ui.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:54) at org.eclipse.e4.workbench.ui.renderers.swt.WBWRenderer.processContents(WBWRenderer.java:369) at org.eclipse.e4.ui.workbench.swt.internal.PartRenderingEngine.createGui(PartRenderingEngine.java:300) at org.eclipse.e4.ui.workbench.swt.internal.PartRenderingEngine.createGui(PartRenderingEngine.java:349) at org.eclipse.e4.ui.workbench.swt.internal.PartRenderingEngine$4.run(PartRenderingEngine.java:510)
bundles/org.eclipse.e4.ui.workbench.renderers.swt/src/org/eclipse/e4/workbench/ui/renderers/swt/StackRenderer.java
}
	public void postProcess(MUIElement element) {
		super.postProcess(element);
		if (!(element instanceof MElementContainer<?>))
			return;
		MElementContainer<MUIElement> container = (MElementContainer<MUIElement>) element;
		CTabFolder ctf = (CTabFolder) element.getWidget();
		MPart selPart = ((MPartStack) element).getActiveChild();
		if (selPart == null)
			return;
		
		CTabItem selItem = findItemForPart(container, selPart);
		if (selItem != null) {
			if (selPart.getWidget() == null) {
				IPresentationEngine renderer = (IPresentationEngine) getContext(
						selPart).get(IPresentationEngine.class.getName());
				renderer.createGui(selPart);
			}
			ctf.setSelection(selItem);
			activate(selPart);
		}
	}
	/*
	 * (non-Javadoc)
	 * 
	 * @see
	 * org.eclipse.e4.workbench.ui.renderers.swt.LazyStackFactory#internalChildAdded
	 * (org.eclipse.e4.ui.model.application.MPart,
	 * org.eclipse.e4.ui.model.application.MPart)
	 */