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 modelService.findElements(rootContainer, null, MPart.class, null);
	}
	public boolean isPartVisible(MPart part) {
		if (isInContainer(part)) {
			MElementContainer<?> parent = part.getParent();
			if (parent instanceof MPartStack) {
				return parent.getSelectedElement() == part;
			}
			return part.isVisible();
		}
		return false;
	}
	private boolean isInContainer(MPart part) {
		MUIElement p = modelService.find(part.getElementId(), rootContainer);
		if (p != null)
			return true;
		return isInContainer(rootContainer, part);
	}
	private boolean isInContainer(MElementContainer<?> container, MPart part) {
		for (Object object : container.getChildren()) {
			if (object == part) {
				return true;
			} else if (object instanceof MElementContainer<?>) {
				if (isInContainer((MElementContainer<?>) object, part)) {
					return true;
				}
			}
		}
		return false;
	}