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
public static final String PERSPECTIVE_SWITCHER_ID = "org.eclipse.e4.ui.PerspectiveSwitcher"; 
	@Inject
	protected IEventBroker eventBroker;
	@Inject
	EModelService modelService;
	@Inject
	private EPartService partService;
	@Inject
	private MWindow window;
	private ToolBar psTB;
	private Composite comp;
	private Image backgroundImage;
	Color borderColor;
	Control toolParent;
	private EventHandler selectionHandler = new EventHandler() {
		public void handleEvent(Event event) {
			MUIElement changedElement = (MUIElement) event.getProperty(UIEvents.EventTags.ELEMENT);
			if (!(changedElement instanceof MPerspectiveStack))
				return;
			MPerspectiveStack perspStack = (MPerspectiveStack) changedElement;
			if (!perspStack.isToBeRendered())
				return;
			MPerspective selElement = perspStack.getSelectedElement();
			for (ToolItem ti : psTB.getItems()) {