/** Add page to the wizard. */
  @Override
  public void addPages() {
    String sdkPath = null;
    if (Activator.IS_WINDOWS) {
      try {
        sdkPath = WindowsAzureProjectManager.getLatestAzureSdkDir();
      } catch (IOException e) {
        sdkPath = null;
        Activator.getDefault().log(errorMessage, e);
      }
    } else {
      Activator.getDefault().log("Not Windows OS, skipping getSDK");
    }
    try {
      if (sdkPath == null && Activator.IS_WINDOWS) {
        errorTitle = Messages.sdkInsErrTtl;
        errorMessage = Messages.sdkInsErrMsg;
        boolean choice = MessageDialog.openQuestion(getShell(), errorTitle, errorMessage);
        if (choice) {
          PlatformUI.getWorkbench()
              .getBrowserSupport()
              .getExternalBrowser()
              .openURL(new URL(Messages.sdkInsUrl));
        }
        addPage(null);
      } else {
        waProjWizPage = new WAProjectWizardPage(Messages.projWizPg);
        tabPg = new WATabPage(Messages.tbPg, waRole, this, true);
        /*
         * If wizard activated through right click on
         * Dynamic web project then
         * Add that as an WAR application.
         */
        if (Activator.getDefault().isContextMenu()) {
          IProject selProj = getSelectProject();
          tabPg.addToAppList(
              selProj.getLocation().toOSString(),
              selProj.getName() + ".war",
              WindowsAzureRoleComponentImportMethod.auto.name());
        }

        waKeyPage = new WAKeyFeaturesPage(Messages.keyPg);
        addPage(waProjWizPage);
        addPage(tabPg);
        addPage(waKeyPage);
      }
    } catch (Exception ex) {
      // only logging the error in log file not showing anything to
      // end user
      Activator.getDefault().log(errorMessage, ex);
    }
  }