Bug 319732 Views with a menu but no toolbar has no menu on restart
Views like the 'Problems' view and 'Outline' view has its view menu on the first startup. When you restart, those view menus disappear.
bundles/org.eclipse.e4.ui.workbench.renderers.swt/src/org/eclipse/e4/ui/workbench/renderers/swt/StackRenderer.java
import org.eclipse.e4.ui.services.IStylingEngine;
import org.eclipse.e4.ui.workbench.IPresentationEngine;
import org.eclipse.e4.ui.workbench.UIEvents;
import org.eclipse.e4.ui.workbench.modeling.EPartService;
import org.eclipse.jface.action.ToolBarManager;
import org.eclipse.swt.SWT;
import org.eclipse.swt.custom.CTabFolder;
import org.eclipse.swt.custom.CTabFolder2Adapter;
import org.eclipse.swt.custom.CTabFolderEvent;
import org.eclipse.swt.custom.CTabItem;
import org.eclipse.swt.events.SelectionEvent;
import org.eclipse.swt.events.SelectionListener;
import org.eclipse.swt.graphics.Image;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Control;
import org.osgi.service.event.Event;
import org.osgi.service.event.EventHandler;
public class StackRenderer extends LazyStackRenderer {
	public static final String TAG_VIEW_MENU = "ViewMenu"; 
	Image viewMenuImage;
	@Inject
	IStylingEngine stylingEngine;
	@Inject
	IEventBroker eventBroker;
	@Inject
	IPresentationEngine renderer;
	private EventHandler itemUpdater;
	private EventHandler dirtyUpdater;
	private boolean ignoreTabSelChanges = false;
	private class ActivationJob implements Runnable {