Bug 317250 [Compatibility] second Java perspective in perspective switcher
bundles/org.eclipse.e4.ui.workbench.addons.swt/src/org/eclipse/e4/ui/workbench/addons/perspectiveswitcher/PerspectiveSwitcher.java
if (!persp.isToBeRendered())
					persp.setToBeRendered(true);
				persp.getParent().setSelectedElement(persp);
			} else {
				openPerspective((PerspectiveDescriptor) descriptor);
			}
		}
	}
	private void openMenuFor(ToolItem item, MPerspective persp) {
		final Menu menu = new Menu(psTB);
		menu.setData(persp);
		if (persp.isVisible()) {
			addItem(menu, "Customize...");
			addItem(menu, "Save As...");
			addCloseItem(menu);
		}
		if (persp.getParent().getSelectedElement() == persp) {
			addResetItem(menu);
		}
		new MenuItem(menu, SWT.SEPARATOR);
		
		addShowTextItem(menu);
		Rectangle bounds = item.getBounds();
		Point point = psTB.toDisplay(bounds.x, bounds.y + bounds.height);
		menu.setLocation(point.x, point.y);
		menu.setVisible(true);
		menu.addMenuListener(new MenuListener() {
			public void menuHidden(MenuEvent e) {
				psTB.getDisplay().asyncExec(new Runnable() {
					public void run() {