Bug 297608 [UI] testCreateMenu fails
The 'testCreateMenu' test in the UI Test suite is now failing because of a regression introduced by the ui model refactoring.
bundles/org.eclipse.e4.ui.workbench.swt/src/org/eclipse/e4/ui/workbench/swt/internal/PartRenderingEngine.java
if (element instanceof MContext) {
			MContext ctxt = (MContext) element;
			
			
			if (ctxt.getContext() == null) {
				IEclipseContext parentContext = element.getParent() == null ? appContext
						: getContext(element.getParent());
				IEclipseContext lclContext = EclipseContextFactory.create(
						parentContext, UISchedulerStrategy.getInstance());
				populateModelInterfaces(ctxt, lclContext, element.getClass()
						.getInterfaces());
				ctxt.setContext(lclContext);
				
				
				for (String variable : ctxt.getVariables()) {
					lclContext.declareModifiable(variable);
				}
				Workbench.processHierarchy(element);
			}
		}
		
		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)