Bug 282008 [Compatibility] Support for 'sticky' views
We need to support the legacy 'sticky' view mechanism. This is used for Help, Cheat Sheets and such that need to remain visible across perspective switches.
bundles/org.eclipse.e4.ui.workbench.renderers.swt/src/org/eclipse/e4/workbench/ui/renderers/swt/StackModelFactory.java
tb = (ToolBar) createToolBar(part.getParent(), ctf, tbModel);
		} else {
			tb = new ToolBar(ctf, SWT.FLAT | SWT.HORIZONTAL);
		}
		
		if (part.getMenu() != null) {
			addMenuButton(part, tb, part.getMenu());
		}
		tb.pack();
		return tb;
	}
	/**
	 * @param tb
	 */
	private void addMenuButton(MItemPart<?> part, ToolBar tb, MMenu menu) {
		ToolItem ti = new ToolItem(tb, SWT.PUSH);
		ti.setImage(getViewMenuImage());
		ti.setHotImage(null);
		ti.setToolTipText("View Menu"); 
		ti.setData("theMenu", menu); 
		ti.setData("thePart", part); 
		ti.addSelectionListener(new SelectionListener() {
			public void widgetSelected(SelectionEvent e) {
				showMenu((ToolItem) e.widget);
			}
			public void widgetDefaultSelected(SelectionEvent e) {
				showMenu((ToolItem) e.widget);
			}
		});
	}