Bug 310199 Need logic to grant focus to parts when their tab item has been selected
Build Id: I20100421-2055 I'm not sure why, but I noticed that in e4 on the macosx-cocoa, selecting an element often causes a blue focus halo to appear. It's a bit ugly.
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);