Bug 295250 ContributedPartRenderer eagerly activates constructed parts in createWidget
I was wondering why my part was becoming active when I noticed the two lines of code below in CPR... parentContext.set(IContextConstants.ACTIVE_CHILD, localContext); activate(element); This eager activation is in direct conflict with the 3.x IWorkbenchPage's showView method with a IWorkbenchPage.VIEW_CREATE mode passed in.
bundles/org.eclipse.e4.ui.workbench/src/org/eclipse/e4/workbench/ui/internal/PartServiceImpl.java
break;
			}
		}
		if (descriptorMatch == null) {
			return null;
		}
		
		
		
		
		
		
		
		
		part = (MPart) EcoreUtil.copy((EObject) descriptorMatch);
		MApplicationElement container = findPart(rootContainer, descriptorMatch.getCategory());
		if (container instanceof MElementContainer<?>) {
			((MElementContainer<MPart>) container).getChildren().add(part);
		} else { 
			MPartStack stack = MApplicationFactory.eINSTANCE.createPartStack();
			stack.setId(descriptorMatch.getCategory());
			stack.getChildren().add(part);
			rootContainer.getChildren().add(stack);
		}
		
		
		deactivate(part);
		activate(part);
		return part;
	}