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
}
		MPart part = BasicFactoryImpl.eINSTANCE.createPart();
		part.setElementId(descriptor.getElementId());
		part.getMenus().addAll(descriptor.getMenus());
		part.setToolbar(descriptor.getToolbar());
		part.setCloseable(descriptor.isCloseable());
		part.setContributionURI(descriptor.getContributionURI());
		part.setLabel(descriptor.getLabel());
		part.setIconURI(descriptor.getIconURI());
		part.setTooltip(descriptor.getTooltip());
		part.getHandlers().addAll(descriptor.getHandlers());
		part.getTags().addAll(descriptor.getTags());
		part.getBindingContexts().addAll(descriptor.getBindingContexts());
		return part;
	}
	public MPart createPart(String id) {
		MPartDescriptor descriptor = findDescriptor(id);
		return createPart(descriptor);
	}
	public MPlaceholder createSharedPart(String id, MWindow sharedWindow) {
		
		MPart sharedPart = null;
		for (MUIElement element : sharedWindow.getSharedElements()) {
			if (element.getElementId().equals(id)) {
				sharedPart = (MPart) element;
				break;
			}
		}
		if (sharedPart == null) {
			MPartDescriptor descriptor = findDescriptor(id);