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

matthew_swift
22.17.2007 c20a1cb28139948290e70cb5652c9f7bf7294e61
Fix issue 2362: dsconfig numbered lists look like menus

This changes the list formatting for property value lists so that each value is prefixed with a "*)" instead of a number and a bracket. This is done to avoid possible confusion with subsequent menu option numbers.
2 files modified
5 ■■■■■ changed files
opends/src/messages/messages/dsconfig.properties 1 ●●●● patch | view | raw | blame | history
opends/src/server/org/opends/server/tools/dsconfig/PropertyValueEditor.java 4 ●●●● patch | view | raw | blame | history
opends/src/messages/messages/dsconfig.properties
@@ -326,7 +326,6 @@
INFO_EDITOR_PROMPT_SELECT_VALUES_ADD_1299=Select the values you wish to add:
INFO_EDITOR_PROMPT_SELECT_VALUES_REMOVE_1302=Select the values you wish to remove:
INFO_EDITOR_PROMPT_MODIFY_MENU_1303=Do you want to modify the "%s" property?
INFO_EDITOR_OPTION_VALUES_1298=%d)
INFO_EDITOR_OPTION_ADD_ALL_VALUES_1300=Add all values
INFO_EDITOR_OPTION_ADD_ONE_OR_MORE_VALUES_1304=Add one or more values
INFO_EDITOR_OPTION_REMOVE_ONE_OR_MORE_VALUES_1305=Remove one or more values
opends/src/server/org/opends/server/tools/dsconfig/PropertyValueEditor.java
@@ -1998,12 +1998,12 @@
    List<T> vl = new ArrayList<T>(values);
    for (int i = 0, j = rows; i < rows; i++, j++) {
      builder.startRow();
      builder.appendCell(INFO_EDITOR_OPTION_VALUES.get(i + 1));
      builder.appendCell("*)");
      builder.appendCell(valuePrinter.print(pd, vl.get(i)));
      if (useMultipleColumns && (j < sz)) {
        builder.appendCell();
        builder.appendCell(INFO_EDITOR_OPTION_VALUES.get(j + 1));
        builder.appendCell("*)");
        builder.appendCell(valuePrinter.print(pd, vl.get(j)));
      }
    }