Bug 337002 EPartService leaks previously active part
A reference is kept to the previously active part. This is unnecessary. We only need it to fire events. After the deactivation events have been fired, we should no longer need to keep it lying around.
tests/org.eclipse.e4.ui.tests/src/org/eclipse/e4/ui/tests/application/EPartServiceTest.java
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);
		}
	}
	public void testSaveAll_YY_True_TT_TT() {
		testSaveAll(new Save[] { Save.YES, Save.YES }, true, new boolean[] {
				true, true }, new boolean[] { true, true });
	}
	public void testSaveAll_YY_True_TT_TF() {
		testSaveAll(new Save[] { Save.YES, Save.YES }, true, new boolean[] {
				true, true }, new boolean[] { true, false });
	}