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
}
				}
				return getActivationCandidate(part);
			}
		}
		return getActivationCandidate(part);
	}
	public MPart deactivate(MPart part) {
		part.getContext().deactivate();
		LinkedList<MPart> activationHistory = getPerspectiveActivationHistory(part);
		return getActivationCandidate(activationHistory == null ? generalActivationHistory
				: activationHistory, part);
	}
	public void forget(MPart part, boolean full) {
		generalActivationHistory.remove(part);
		if (full) {
			for (LinkedList<MPart> history : perspectiveActivationHistories.values()) {
				history.remove(part);
			}
		} else {
			LinkedList<MPart> history = getPerspectiveActivationHistory(part);
			if (history != null) {
				history.remove(part);
			}
		}
	}
	private MPart getSiblingActivationCandidate(MPart part, MUIElement element,
			Collection<MPart> activationHistory) {
		List<MUIElement> siblings = element.getParent().getChildren();
		for (MPart previouslyActivatedPart : activationHistory) {