Bug 61216 [Dialogs] Closing the workspace dialog and escape
I20040506-0200 When you do File > Exit when the dialog is open, and you press escape, the behaviour of OK is executed (ie eclipse is being closed) whereas one would expect the behavior of CANCEL to happen.
bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/IDEWorkbenchAdvisor.java
public void partOpened(IWorkbenchPartReference ref) {
			    
			}
			public void partHidden(IWorkbenchPartReference ref) {
			    
			}
			public void partVisible(IWorkbenchPartReference ref) {
			    
			}
			public void partInputChanged(IWorkbenchPartReference ref) {
			    
			}
		});
	}
	/* (non-Javadoc)
	 * @see org.eclipse.ui.application.WorkbenchAdvisor#postWindowRestore
	 */
	public void postWindowRestore(IWorkbenchWindowConfigurer windowConfigurer) throws WorkbenchException {
		int index = PlatformUI.getWorkbench().getWorkbenchWindowCount() - 1;
		
		if (index >=0 && welcomePerspectiveInfos != null && index < welcomePerspectiveInfos.size()) {
			
			IWorkbenchPage page = windowConfigurer.getWindow().getActivePage();
			if (page == null) {
				IWorkbenchPage pages[] = windowConfigurer.getWindow().getPages();
				if (pages != null && pages.length > 0)
					page = pages[0];
			}
			
			String perspectiveId = ((AboutInfo) welcomePerspectiveInfos.get(index)).getWelcomePerspectiveId();