mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

kenneth_suter
19.28.2007 efde227b9d0180122362133a750c6b322601c883
opends/src/quicksetup/org/opends/quicksetup/CliUserInteraction.java
@@ -94,10 +94,9 @@
              viewDetailsOption != null ? viewDetailsOption : "View Details"));
    }
    println(summary);
    println();
    println(Utils.stripHtml(summary));
    println();
    println(Utils.stripHtml(details));
    println(details);
    String returnValue = null;
    while (returnValue == null) {
@@ -106,8 +105,8 @@
        println(o);
      }
      System.out.print(getMsg("cli-uninstall-confirm-prompt",
          new String[] {"Enter a number or press Enter to accept the default",
                  Integer.toString(defInt)}));
              "Enter a number or press Enter to accept the default",
              Integer.toString(defInt)));
      System.out.flush();
@@ -133,7 +132,20 @@
    return returnValue;
  }
  /**
   * {@inheritDoc}
   */
  public String createUnorderedList(List list) {
    StringBuilder sb = new StringBuilder();
    if (list != null) {
      for (Object o : list) {
        sb.append(/*bullet=*/"\u2022 ");
        sb.append(o.toString());
        sb.append(Constants.LINE_SEPARATOR);
      }
    }
    return sb.toString();
  }
  private String createOption(int index, String option) {
    return new StringBuilder().
@@ -147,7 +159,10 @@
  }
  private void println(String text) {
    out.println(StaticUtils.wrapText(text, Utils.getCommandLineMaxLineWidth()));
    text = Utils.convertHtmlBreakToLineSeparator(text);
    text = Utils.stripHtml(text);
    text = StaticUtils.wrapText(text, Utils.getCommandLineMaxLineWidth());
    out.println(text);
  }
}