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
*/
	private MWindow workbenchWindow;
	@Inject
	private IPresentationEngine engine;
	@Inject
	private EModelService modelService;
	@Inject
	private Logger logger;
	@Inject
	@Optional
	private ISaveHandler saveHandler;
	@Inject
	private IEventBroker eventBroker;
	private PartActivationHistory partActivationHistory;
	private MPart activePart;
	private MPart lastActivePart;
	private ListenerList listeners = new ListenerList();
	private boolean constructed = false;
	@Inject
	public PartServiceImpl(MApplication application, @Optional MWindow window) {
		
		this.application = application;
		workbenchWindow = window;
	}
	@Inject
	void setPart(@Optional @Named(IServiceConstants.ACTIVE_PART) MPart p) {
		if (activePart != p) {
			lastActivePart = activePart;
			activePart = p;