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/PartServiceImpl.java
return part;
		case CREATE:
			part.setToBeRendered(true);
			MPlaceholder placeholder = part.getCurSharedRef();
			if (placeholder != null) {
				placeholder.setToBeRendered(true);
				engine.createGui(placeholder);
				MElementContainer<MUIElement> parent = placeholder.getParent();
				if (parent.getChildren().size() == 1) {
					parent.setSelectedElement(placeholder);
				}
			} else {
				engine.createGui(part);
				MElementContainer<MUIElement> parent = part.getParent();
				if (parent.getChildren().size() == 1) {
					parent.setSelectedElement(part);
				}
			}
			return part;
		}
		return part;
	}
	public MPart showPart(String id, PartState partState) {
		Assert.isNotNull(id);
		Assert.isNotNull(partState);
		MPart part = findPart(id);
		if (part != null) {
			return showPart(part, partState);
		}
		MPartDescriptor descriptor = findDescriptor(id);