Bug 277676 [UI] The workbench should create the contexts
The workbench should create contexts for the model elements, MApplication and MParts (windows, sashes, contributed parts, etc). This is not really the responsibility of the renderers. PW
bundles/org.eclipse.e4.ui.workbench.renderers.swt/src/org/eclipse/e4/workbench/ui/renderers/swt/StackModelFactory.java
Widget newWidget = null;
		if (!(part instanceof MStack))
			return null;
		Widget parentWidget = getParentWidget(part);
		if (parentWidget instanceof Composite) {
			IEclipseContext parentContext = getContextForParent(part);
			
			
			boolean showCloseAlways = false;
			boolean showMinMax = false;
			int styleModifier = 0;
			if (part.getPolicy() != null && part.getPolicy().length() > 0) {
				String policy = part.getPolicy();
				if (policy.indexOf("ViewStack") >= 0) { 
					styleModifier = SWT.CLOSE;
					showMinMax = true;
				}
				if (policy.indexOf("EditorStack") >= 0) { 
					styleModifier = SWT.CLOSE;
					showCloseAlways = true;
					showMinMax = true;
				}
			}
			final CTabFolder ctf = new CTabFolder((Composite) parentWidget,
					SWT.BORDER | styleModifier);
			ctf.setUnselectedCloseVisible(showCloseAlways);
			ctf.setMaximizeVisible(showMinMax);
			ctf.setMinimizeVisible(showMinMax);