Bug 327522 Several main menus gone
I20101007-1949. 1. start new workspace 2. paste this snippet into Package Explorer: "class A {}" 3. close the editor (doesn't matter if you save or not) ==> several main menus (e.g. 'Refactor') are gone. ==> selecting another element in the view does not bring it back Nothing in .log.
bundles/org.eclipse.e4.ui.workbench/src/org/eclipse/e4/ui/internal/workbench/PartActivationHistory.java
private EModelService modelService;
	private LinkedList<MPart> generalActivationHistory = new LinkedList<MPart>();
	private Map<MUIElement, LinkedList<MPart>> perspectiveActivationHistories = new WeakHashMap<MUIElement, LinkedList<MPart>>();
	PartActivationHistory(EModelService modelService) {
		this.modelService = modelService;
	}
	public void clear() {
		generalActivationHistory.clear();
		perspectiveActivationHistories.clear();
	}
	public void activate(MPart part) {
		IEclipseContext partContext = part.getContext();
		partContext.activateBranch();
		LinkedList<MPart> perspectiveActivationHistory = getPerspectiveActivationHistory(part);
		if (perspectiveActivationHistory != null) {
			perspectiveActivationHistory.remove(part);
			perspectiveActivationHistory.addFirst(part);
		}
		generalActivationHistory.remove(part);
		generalActivationHistory.addFirst(part);
	}
	/**