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
restoreEnableState(getButton(IDialogConstants.CANCEL_ID), state, "cancel");
		ControlEnableState pageState = (ControlEnableState) state.get("page");
		pageState.restore();
	}
	
	private void restoreEnableState(Control w, Map h, String key) {
		if (w != null) {
			Boolean b = (Boolean) h.get(key);
			if (b != null)
				w.setEnabled(b.booleanValue());
		}
	}
	
	
	
	public boolean close() {
		fWizard.dispose();
		return super.close();
	}
	protected void cancelPressed() {
		if (fActiveRunningOperations == 0)	{
			if (fWizard.performCancel())	
				super.cancelPressed();
		}
	}
	protected void okPressed() {
		IWizardPage current= fCurrentPage;
		if (fWizard.performFinish()) {
			saveSize();
			super.okPressed();