Browse Source

Ask user for input in PMD not ask for confirmation

Change-Id: I3520a885263f09b2a098b9f3ae371e9835d9b7d4
Reviewed-on: http://gerrit.dmdirc.com/2311
Reviewed-by: Chris Smith <chris@dmdirc.com>
Automatic-Compile: DMDirc Build Manager
tags/0.7rc1
Greg Holmes 12 years ago
parent
commit
79cde01781

+ 1
- 1
src/com/dmdirc/addons/ui_swing/cinch/InputAction.java View File

@@ -80,7 +80,7 @@ public @interface InputAction {
80 80
      *
81 81
      * @return Message
82 82
      */
83
-    String message() default "Are you sure you want to do this?";
83
+    String message() default "Fill in the following:";
84 84
 
85 85
     /**
86 86
      * Class name of the validator to use in the input dialog.

+ 3
- 1
src/com/dmdirc/addons/ui_swing/dialogs/profiles/ProfileManagerDialog.java View File

@@ -76,13 +76,15 @@ public final class ProfileManagerDialog extends StandardDialog {
76 76
     /** Adds a new nickname to the active profile. */
77 77
     @InputAction(
78 78
             call = "addNickname",
79
-            validator = AddNicknameValidator.class)
79
+            validator = AddNicknameValidator.class,
80
+            message = "Enter nickname to add:")
80 81
     @EnabledIf(to = "manipulateProfileAllowed")
81 82
     private final JButton addNickname = new JButton("Add");
82 83
     /** Edits the active nickname in the active profile. */
83 84
     @InputAction(
84 85
             call = "editNickname",
85 86
             validator = EditNicknameValidator.class,
87
+            message = "Enter edited nickname:",
86 88
             content = "getSelectedNickname")
87 89
     @EnabledIf(to = "manipulateNicknameAllowed")
88 90
     private final JButton editNickname = new JButton("Edit");

Loading…
Cancel
Save