Bug 118209 Rename type wizard does not close when pressing finish [refactoring]
I20051123-1200 + ZRH plugin export Steps to reproduce: - Create JUnit Project - Start Rename type on 'TestRunner' - Choose update references and similar elements only - Press Finish - Warning appears regarding broken scripts - Press Finish again -> Nothing happens
org.eclipse.ltk.ui.refactoring/src/org/eclipse/ltk/internal/ui/refactoring/RefactoringWizardDialog2.java
savedState.put("focus", focusControl); 
			
			if (hasProgressMonitor) {	
				fProgressMonitorPart.attachToCancelComponent(cancelButton);
				fStatusContainer.showPage(fProgressMonitorPart);
			}
			
			fStatusContainer.update();
		}
		return savedState;
	}
	
	private Map saveUIState(boolean keepCancelEnabled) {
		Map savedState= new HashMap(10);
		saveEnableStateAndSet(getButton(PREVIEW_ID), savedState, "preview", false); 
		saveEnableStateAndSet(getButton(IDialogConstants.OK_ID), savedState, "ok", false); 
		saveEnableStateAndSet(getButton(IDialogConstants.CANCEL_ID), savedState, "cancel", keepCancelEnabled); 
		savedState.put("page", ControlEnableState.disable(fVisiblePage.getControl())); 
		return savedState;
	}
	
	private void saveEnableStateAndSet(Control w, Map h, String key, boolean enabled) {
		if (w != null) {
			h.put(key, new Boolean(w.getEnabled()));
			w.setEnabled(enabled);
		}
	}
	
	private void setDisplayCursor(Display d, Cursor c) {
		Shell[] shells= d.getShells();