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.
| | |
| | | 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 |
| | |
| | | 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))); |
| | | } |
| | | } |