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.
tests/org.eclipse.e4.ui.tests/src/org/eclipse/e4/ui/tests/application/EPartServiceTest.java
}
					return beforeDirty;
				}
				return new boolean[] { beforeDirty[0], false };
			} else if (returnValues[1] == Save.YES) {
				return new boolean[] { false, beforeDirty[1] };
			}
			return new boolean[] { false, false };
		}
		return saveCalled(beforeDirty, throwException);
	}
	private boolean[] saveCalled(boolean[] beforeDirty, boolean[] throwException) {
		return new boolean[] {
				beforeDirty[0],
				beforeDirty[0] ? !throwException[0] && beforeDirty[1]
						: beforeDirty[1] };
	}
	private void testSaveAll(Save[] returnValues, boolean confirm,
			boolean[] beforeDirty, boolean[] throwException) {
		if (hasCancel(returnValues, beforeDirty) && confirm) {
			testSaveAll(returnValues, confirm, beforeDirty, beforeDirty, false,
					new boolean[] { false, false }, throwException);
		} else {
			testSaveAll(
					returnValues,
					confirm,
					beforeDirty,
					afterDirty(returnValues, confirm, beforeDirty,
							throwException),
					isSuccessful(returnValues, confirm, beforeDirty,