Bug 59956 [R21PRES] perspective switcher
bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/IDEWorkbenchAdvisor.java
/* (non-Javadoc)
	 * @see org.eclipse.ui.application.WorkbenchAdvisor#isApplicationMenu
	 */
	public boolean isApplicationMenu(IWorkbenchWindowConfigurer windowConfigurer, String menuID) {
		WorkbenchActionBuilder a = (WorkbenchActionBuilder) windowConfigurer.getData(ACTION_BUILDER);
		return a.isContainerMenu(menuID);
	}
	
	/* (non-Javadoc)
	 * @see org.eclipse.ui.application.WorkbenchAdvisor#getDefaultPageInput
	 */
	public IAdaptable getDefaultPageInput() {
		return ResourcesPlugin.getWorkspace().getRoot();
	}
	/* (non-Javadoc)
	 * @see org.eclipse.ui.application.WorkbenchAdvisor
	 */
	public String getInitialWindowPerspectiveId() {
		int index = PlatformUI.getWorkbench().getWorkbenchWindowCount() - 1;
		
		String perspectiveId = null;
		if (index >=0 && welcomePerspectiveInfos != null && index < welcomePerspectiveInfos.size()) {
			perspectiveId = ((AboutInfo) welcomePerspectiveInfos.get(index)).getWelcomePerspectiveId();
		}
		if (perspectiveId == null) {
			perspectiveId = IDE.RESOURCE_PERSPECTIVE_ID;
		}
		return perspectiveId;
	}
	/*