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.
examples/org.eclipse.e4.demo.contacts/src/org/eclipse/e4/demo/contacts/views/DetailsView.java
private EHandlerService handlerService;
	@Inject
	private ECommandService commandService;
	@Inject
	private IStylingEngine engine;
	@Inject
	private MUILabel uiItem;
	@Inject
	public DetailsView(Composite parent, MDirtyable dirtyable) {
		detailComposite = new DetailComposite(dirtyable, parent, SWT.NONE);
		this.dirtyable = dirtyable;
		GridLayoutFactory.fillDefaults().generateLayout(parent);
	}
	public boolean isSaveOnCloseNeeded() {
		return true;
	}
	@Persist
	public void doSave(@Optional IProgressMonitor monitor) throws IOException,
			InterruptedException {
		if (monitor == null) {
			monitor = new NullProgressMonitor();
		}
		monitor.beginTask("Saving contact details to vCard...", 16);
		Contact originalContact = detailComposite.getOriginalContact();
		Contact modifiedContact = detailComposite.getModifiedContact();
		saveAsVCard(modifiedContact, modifiedContact.getSourceFile());
		originalContact.setCity(modifiedContact.getCity());
		Thread.sleep(50);
		monitor.worked(1);
		originalContact.setCompany(modifiedContact.getCompany());