Bug 303218 Active part no longer seems to be queryable from the application's context
tests/org.eclipse.e4.ui.tests/src/org/eclipse/e4/ui/tests/application/EPartServiceTest.java
Workbench.processHierarchy(application);
		((Notifier) application).eAdapters().add(
				new UIEventPublisher(applicationContext));
		applicationContext.set(ISaveHandler.class.getName(),
				new ISaveHandler() {
					public Save[] promptToSave(Collection<MPart> saveablePart) {
						Save[] ret = new Save[saveablePart.size()];
						Arrays.fill(ret, ISaveHandler.Save.YES);
						return ret;
					}
					public Save promptToSave(MPart saveablePart) {
						return ISaveHandler.Save.YES;
					}
				});
	}
	class PartListener implements IPartListener {
		private List<MPart> activatedParts = new ArrayList<MPart>();
		private List<MPart> broughtToTopParts = new ArrayList<MPart>();
		private int activated = 0;
		private int broughtToTop = 0;
		private boolean valid = true;
		public void clear() {
			activated = 0;
			broughtToTop = 0;
			activatedParts.clear();
			broughtToTopParts.clear();
			valid = true;
		}
		public int getActivated() {
			return activated;