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
history);
			} else if (parent instanceof MWindow) {
				MUIElement windowParent = parent.getParent();
				if (windowParent instanceof MApplication) {
					return getSiblingActivationCandidate(part, element, generalActivationHistory);
				}
				parent = windowParent;
			} else {
				MUIElement parentCandidate = parent.getParent();
				if (parentCandidate == null) {
					MPlaceholder placeholder = parent.getCurSharedRef();
					if (placeholder == null) {
						return null;
					}
					parentCandidate = placeholder.getParent();
					if (parentCandidate == null) {
						return null;
					}
				}
				parent = parentCandidate;
			}
		}
		return null;
	}
	public MPart getSiblingActivationCandidate(MPart part) {
		MPlaceholder placeholder = part.getCurSharedRef();
		return getSiblingActivationCandidate(part, placeholder == null ? part : placeholder);
	}
}