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
}
		}
		return null;
	}
	private void internalFixContext(MPart part, MUIElement oldSelectedElement) {
		if (oldSelectedElement == null) {
			return;
		}
		MContext parentPart = getParentWithContext(oldSelectedElement);
		if (parentPart == null) {
			
			return;
		}
		IEclipseContext parentContext = parentPart.getContext();
		IEclipseContext oldContext = getSubContext(oldSelectedElement);
		Object child = parentContext.get(IContextConstants.ACTIVE_CHILD);
		if (child == null || oldContext == null || child == oldContext) {
			parentContext.set(IContextConstants.ACTIVE_CHILD,
					part == null ? null : part.getContext());
		}
	}
	public MPart findPart(String id) {
		MApplicationElement element = modelService.find(id, rootContainer);
		if (element instanceof MPlaceholder) {
			((MPlaceholder) element).getRef().setCurSharedRef((MPlaceholder) element);
			element = ((MPlaceholder) element).getRef();
		}
		return element instanceof MPart ? (MPart) element : null;
	}
	public Collection<MPart> getParts() {