Bug 325836 EPartService's createSharedPart(*) methods should not need its MWindow parameter
The service should only be interacting with its own window and not some other random window.
tests/org.eclipse.e4.ui.tests/src/org/eclipse/e4/ui/tests/application/EPartServiceTest.java
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,
							throwException),
					saveCalled(returnValues, confirm, beforeDirty,
							throwException), throwException);
		}
	}