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

jvergara
07.45.2009 d4999249551d8dc494433ade3bb4b3989aec0556
Fix for issue 3194 (hardcoded letters for menu options in ManageTasks.java)
2 files modified
23 ■■■■■ changed files
opendj-sdk/opends/src/messages/messages/tools.properties 11 ●●●● patch | view | raw | blame | history
opendj-sdk/opends/src/server/org/opends/server/tools/ManageTasks.java 12 ●●●● patch | view | raw | blame | history
opendj-sdk/opends/src/messages/messages/tools.properties
@@ -2473,6 +2473,11 @@
 
SEVERE_ERR_LDAPCOMPARE_FILENAME_AND_DNS_1670=Both entry DNs and a file name \
 were provided for the compare operation.  These arguments are not compatible
# The following chars correspond to the following properties:
# INFO_TASKINFO_CMD_REFRESH_1415=refresh
# INFO_TASKINFO_CMD_CANCEL_1416=cancel task
# INFO_TASKINFO_CMD_VIEW_LOGS_1417=view logs
INFO_TASKINFO_CMD_REFRESH_CHAR_1671=r
INFO_TASKINFO_CMD_CANCEL_CHAR_1672=c
INFO_TASKINFO_CMD_VIEW_LOGS_CHAR_1673=l
opendj-sdk/opends/src/server/org/opends/server/tools/ManageTasks.java
@@ -22,7 +22,7 @@
 * CDDL HEADER END
 *
 *
 *      Copyright 2008 Sun Microsystems, Inc.
 *      Copyright 2008-2009 Sun Microsystems, Inc.
 */
package org.opends.server.tools;
@@ -434,13 +434,13 @@
    }
    menuBuilder.addCharOption(
            Message.raw("r"),
            INFO_TASKINFO_CMD_REFRESH_CHAR.get(),
            INFO_TASKINFO_CMD_REFRESH.get(),
            new PrintSummaryTop());
    if (cancelableIndices.size() > 0) {
      menuBuilder.addCharOption(
              Message.raw("c"),
              INFO_TASKINFO_CMD_CANCEL_CHAR.get(),
              INFO_TASKINFO_CMD_CANCEL.get(),
              new CancelTaskTop(taskIds, cancelableIndices));
    }
@@ -565,19 +565,19 @@
                    new MenuBuilder<TaskEntry>(app);
            menuBuilder.addBackOption(true);
            menuBuilder.addCharOption(
                    Message.raw("r"),
                    INFO_TASKINFO_CMD_REFRESH_CHAR.get(),
                    INFO_TASKINFO_CMD_REFRESH.get(),
                    new PrintTaskInfo(taskId));
            List<Message> logs = taskEntry.getLogMessages();
            if (logs != null && logs.size() > 0) {
              menuBuilder.addCharOption(
                      Message.raw("l"),
                      INFO_TASKINFO_CMD_VIEW_LOGS_CHAR.get(),
                      INFO_TASKINFO_CMD_VIEW_LOGS.get(),
                      new ViewTaskLogs(taskId));
            }
            if (taskEntry.isCancelable() && !taskEntry.isDone()) {
              menuBuilder.addCharOption(
                      Message.raw("c"),
                      INFO_TASKINFO_CMD_CANCEL_CHAR.get(),
                      INFO_TASKINFO_CMD_CANCEL.get(),
                      new CancelTask(taskId));
            }