Bug 317429 Keyboard focus remains in editor even though it's not the active part
1. Go to the 'Debug' perspective. 2. Place a breakpoint in your main method. 3. Make sure the 'Debug' view is opened. 4. Activate the editor. 5. F11 6. The 'Debug' view is now active but the keyboard focus is still in the editor and the caret can be seen blinking.
bundles/org.eclipse.e4.ui.workbench/src/org/eclipse/e4/ui/internal/workbench/PartServiceImpl.java
sharedPart = createPart(descriptor);
			sharedWindow.getSharedElements().add(sharedPart);
		}
		
		MPlaceholder sharedPartRef = AdvancedFactoryImpl.eINSTANCE.createPlaceholder();
		sharedPartRef.setElementId(sharedPart.getElementId());
		sharedPartRef.setRef(sharedPart);
		return sharedPartRef;
	}
	private MPart addPart(MPart providedPart, MPart localPart) {
		if (providedPart == localPart && isInContainer(providedPart)) {
			return providedPart;
		}
		MPartDescriptor descriptor = findDescriptor(providedPart.getElementId());
		if (descriptor == null) {
			if (providedPart != localPart) {
				MPartStack stack = BasicFactoryImpl.eINSTANCE.createPartStack();
				if (providedPart.getCurSharedRef() instanceof MPlaceholder) {
					stack.getChildren().add(providedPart.getCurSharedRef());
				} else {
					stack.getChildren().add(providedPart);
				}
				rootContainer.getChildren().add(stack);
			}
		} else {
			if (providedPart != localPart && !descriptor.isAllowMultiple()) {
				return localPart;
			}
			String category = descriptor.getCategory();
			if (category == null) {