Bug 89510 [refactoring] Extract Interface: preview opens on wrong screen
20050329 I work on a dual monitor setup and have the eclipse workspace (no detached windows) open on the right screen. - Open the Extract Interface wizard (open correctly on the same monitor as Eclipse), enter a name, press 'Preview' - The preview wizard window opens on the left screen
org.eclipse.ltk.ui.refactoring/src/org/eclipse/ltk/internal/ui/refactoring/RefactoringWizardDialog2.java
fWaitCursor.dispose();
			fWaitCursor = null;
			fArrowCursor.dispose();
			fArrowCursor = null;
			Control focusControl = (Control)state.get("focus"); 
			if (focusControl != null)
				focusControl.setFocus();
		}
	}
	
	private void restoreUIState(Map state) {
		restoreEnableState(getButton(PREVIEW_ID), state, "preview");
		restoreEnableState(getButton(IDialogConstants.OK_ID), state, "ok");
		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();