// CODINGSPECTATOR: Update the navigation history whenever the user presses a button on the error
  // dialog.
  private boolean showErrorDialog(ErrorWizardPage page) {
    RefactoringStatusDialog dialog =
        new RefactoringStatusDialog(
            getShell(), page, fWizard.internalShowBackButtonOnStatusDialog(InternalAPI.INSTANCE));
    switch (dialog.open()) {
      case IDialogConstants.OK_ID:

        // See RefactoringStatusDialog#createButtonsForButtonBar() for the labels of the buttons
        fWizard.addNavigationHistoryItem(
            new NavigationHistoryItem(
                page.getName(), RefactoringUIMessages.RefactoringStatusDialog_Continue));
        return true;
      case IDialogConstants.BACK_ID:
        fWizard.addNavigationHistoryItem(
            new NavigationHistoryItem(page.getName(), IDialogConstants.BACK_LABEL));
        fCurrentPage = fCurrentPage.getPreviousPage();
        break;
      case IDialogConstants.CANCEL_ID:
        cancelPressed();
    }
    return false;
  }