@Override
  public void setToBeShown(boolean value, int exitCode) {
    int mode;
    if (value) {
      mode = GeneralSettings.OPEN_PROJECT_ASK;
    }
    else {
      // see `ProjectUtil#confirmOpenNewProject` and `ProjectUtil#confirmOpenOrAttachProject`
      mode = exitCode == 0 /*Messages.YES*/ ? GeneralSettings.OPEN_PROJECT_SAME_WINDOW :
             exitCode == 1 /*Messages.NO*/ ? GeneralSettings.OPEN_PROJECT_NEW_WINDOW :
             GeneralSettings.OPEN_PROJECT_ASK;
    }
    GeneralSettings.getInstance().setConfirmOpenNewProject(mode);
  }
@Override
  public void setToBeShown(boolean value, int exitCode)