private void stopped(Object savedState) { Shell shell = getShell(); if (shell != null) { Button cancelButton = getButton(IDialogConstants.CANCEL_ID); if (fProgressMonitorPart != null) fProgressMonitorPart.removeFromCancelComponent(cancelButton); fStatusContainer.showPage(fMessageBox); Map state = (Map) savedState; restoreUIState(state); setDisplayCursor(shell.getDisplay(), null); cancelButton.setCursor(null); Control focusControl = (Control) state.get("focus"); // $NON-NLS-1$ if (focusControl != null) focusControl.setFocus(); } }