Parcourir la source

Renamed CommandWindow to InputWindow and moved to UI


git-svn-id: http://svn.dmdirc.com/trunk@1539 00569f92-eb28-0410-84fd-f71c24880f
tags/0.5
Chris Smith il y a 17 ans
Parent
révision
fcef8e2770
61 fichiers modifiés avec 144 ajouts et 223 suppressions
  1. 2
    1
      src/com/dmdirc/commandparser/ChannelCommand.java
  2. 3
    2
      src/com/dmdirc/commandparser/ChannelCommandParser.java
  3. 3
    1
      src/com/dmdirc/commandparser/Command.java
  4. 8
    7
      src/com/dmdirc/commandparser/CommandParser.java
  5. 0
    93
      src/com/dmdirc/commandparser/CommandWindow.java
  6. 3
    1
      src/com/dmdirc/commandparser/GlobalCommand.java
  7. 3
    2
      src/com/dmdirc/commandparser/GlobalCommandParser.java
  8. 2
    1
      src/com/dmdirc/commandparser/QueryCommand.java
  9. 3
    2
      src/com/dmdirc/commandparser/QueryCommandParser.java
  10. 2
    1
      src/com/dmdirc/commandparser/ServerCommand.java
  11. 3
    2
      src/com/dmdirc/commandparser/ServerCommandParser.java
  12. 2
    2
      src/com/dmdirc/commandparser/commands/channel/Ban.java
  13. 2
    2
      src/com/dmdirc/commandparser/commands/channel/Benchmark.java
  14. 2
    2
      src/com/dmdirc/commandparser/commands/channel/ChannelSettings.java
  15. 2
    2
      src/com/dmdirc/commandparser/commands/channel/Cycle.java
  16. 2
    2
      src/com/dmdirc/commandparser/commands/channel/Kick.java
  17. 2
    2
      src/com/dmdirc/commandparser/commands/channel/KickEmpty.java
  18. 2
    2
      src/com/dmdirc/commandparser/commands/channel/KickReason.java
  19. 2
    2
      src/com/dmdirc/commandparser/commands/channel/Me.java
  20. 2
    2
      src/com/dmdirc/commandparser/commands/channel/MeEmpty.java
  21. 2
    2
      src/com/dmdirc/commandparser/commands/channel/Mode.java
  22. 2
    2
      src/com/dmdirc/commandparser/commands/channel/Part.java
  23. 2
    2
      src/com/dmdirc/commandparser/commands/channel/PartDefault.java
  24. 2
    2
      src/com/dmdirc/commandparser/commands/channel/SetNickColour.java
  25. 2
    2
      src/com/dmdirc/commandparser/commands/channel/SetTopic.java
  26. 2
    2
      src/com/dmdirc/commandparser/commands/channel/ShowTopic.java
  27. 3
    3
      src/com/dmdirc/commandparser/commands/global/Active.java
  28. 3
    3
      src/com/dmdirc/commandparser/commands/global/AllServers.java
  29. 2
    2
      src/com/dmdirc/commandparser/commands/global/Exit.java
  30. 2
    2
      src/com/dmdirc/commandparser/commands/global/ExitDefault.java
  31. 2
    2
      src/com/dmdirc/commandparser/commands/global/LoadFormatter.java
  32. 3
    2
      src/com/dmdirc/commandparser/commands/global/LoadPlugin.java
  33. 2
    2
      src/com/dmdirc/commandparser/commands/global/NewServer.java
  34. 2
    2
      src/com/dmdirc/commandparser/commands/global/Notify.java
  35. 2
    2
      src/com/dmdirc/commandparser/commands/global/ReloadActions.java
  36. 2
    2
      src/com/dmdirc/commandparser/commands/global/ReloadFormatter.java
  37. 2
    2
      src/com/dmdirc/commandparser/commands/global/ReloadPlugin.java
  38. 2
    2
      src/com/dmdirc/commandparser/commands/global/SaveFormatter.java
  39. 7
    6
      src/com/dmdirc/commandparser/commands/global/Set.java
  40. 2
    2
      src/com/dmdirc/commandparser/commands/query/QueryMe.java
  41. 2
    2
      src/com/dmdirc/commandparser/commands/query/QueryMeEmpty.java
  42. 3
    3
      src/com/dmdirc/commandparser/commands/server/AllChannels.java
  43. 2
    2
      src/com/dmdirc/commandparser/commands/server/Away.java
  44. 2
    2
      src/com/dmdirc/commandparser/commands/server/Back.java
  45. 2
    2
      src/com/dmdirc/commandparser/commands/server/ChangeServer.java
  46. 2
    2
      src/com/dmdirc/commandparser/commands/server/Clear.java
  47. 2
    2
      src/com/dmdirc/commandparser/commands/server/ConfigInfo.java
  48. 2
    2
      src/com/dmdirc/commandparser/commands/server/Ctcp.java
  49. 2
    2
      src/com/dmdirc/commandparser/commands/server/Disconnect.java
  50. 4
    4
      src/com/dmdirc/commandparser/commands/server/Echo.java
  51. 3
    3
      src/com/dmdirc/commandparser/commands/server/Help.java
  52. 2
    2
      src/com/dmdirc/commandparser/commands/server/Ignore.java
  53. 2
    2
      src/com/dmdirc/commandparser/commands/server/Join.java
  54. 2
    2
      src/com/dmdirc/commandparser/commands/server/Message.java
  55. 2
    2
      src/com/dmdirc/commandparser/commands/server/Motd.java
  56. 2
    2
      src/com/dmdirc/commandparser/commands/server/Nick.java
  57. 2
    2
      src/com/dmdirc/commandparser/commands/server/Notice.java
  58. 2
    2
      src/com/dmdirc/commandparser/commands/server/Query.java
  59. 2
    2
      src/com/dmdirc/commandparser/commands/server/Raw.java
  60. 2
    2
      src/com/dmdirc/commandparser/commands/server/Reconnect.java
  61. 2
    2
      src/com/dmdirc/commandparser/commands/server/Whois.java

+ 2
- 1
src/com/dmdirc/commandparser/ChannelCommand.java Voir le fichier

@@ -24,6 +24,7 @@ package com.dmdirc.commandparser;
24 24
 
25 25
 import com.dmdirc.Channel;
26 26
 import com.dmdirc.Server;
27
+import com.dmdirc.ui.InputWindow;
27 28
 
28 29
 /**
29 30
  * Represents a command which can be performed only in the context of a channel.
@@ -39,6 +40,6 @@ public abstract class ChannelCommand extends Command {
39 40
      * @param isSilent Whether this command is silenced or not
40 41
      * @param args Arguments passed to this command
41 42
      */
42
-    public abstract void execute(CommandWindow origin, Server server, Channel channel,
43
+    public abstract void execute(InputWindow origin, Server server, Channel channel,
43 44
             boolean isSilent, String... args);
44 45
 }

+ 3
- 2
src/com/dmdirc/commandparser/ChannelCommandParser.java Voir le fichier

@@ -24,6 +24,7 @@ package com.dmdirc.commandparser;
24 24
 
25 25
 import com.dmdirc.Channel;
26 26
 import com.dmdirc.Server;
27
+import com.dmdirc.ui.InputWindow;
27 28
 
28 29
 /**
29 30
  * A command parser that is tailored for use in a channel environment. Handles
@@ -61,7 +62,7 @@ public final class ChannelCommandParser extends CommandParser {
61 62
     }
62 63
     
63 64
     /** {@inheritDoc} */
64
-    protected void executeCommand(final CommandWindow origin,
65
+    protected void executeCommand(final InputWindow origin,
65 66
             final boolean isSilent, final Command command, final String... args) {
66 67
         if (command instanceof ChannelCommand) {
67 68
             ((ChannelCommand) command).execute(origin, server, channel, isSilent, args);
@@ -78,7 +79,7 @@ public final class ChannelCommandParser extends CommandParser {
78 79
      * @param origin The window in which the command was typed
79 80
      * @param line The line input by the user
80 81
      */
81
-    protected void handleNonCommand(final CommandWindow origin, final String line) {
82
+    protected void handleNonCommand(final InputWindow origin, final String line) {
82 83
         channel.sendLine(line);
83 84
     }
84 85
     

+ 3
- 1
src/com/dmdirc/commandparser/Command.java Voir le fichier

@@ -22,6 +22,8 @@
22 22
 
23 23
 package com.dmdirc.commandparser;
24 24
 
25
+import com.dmdirc.ui.InputWindow;
26
+
25 27
 /**
26 28
  * Represents a generic command.
27 29
  * @author chris
@@ -106,7 +108,7 @@ public abstract class Command implements Comparable<Command> {
106 108
      * @param type The type of message to send
107 109
      * @param args The arguments of the message
108 110
      */
109
-    protected final void sendLine(final CommandWindow target,
111
+    protected final void sendLine(final InputWindow target,
110 112
             final boolean isSilent, final String type, final Object ... args) {
111 113
         if (!isSilent && target != null) {
112 114
             target.addLine(type, args);

+ 8
- 7
src/com/dmdirc/commandparser/CommandParser.java Voir le fichier

@@ -26,6 +26,7 @@ import com.dmdirc.Config;
26 26
 import com.dmdirc.Server;
27 27
 import com.dmdirc.actions.ActionManager;
28 28
 import com.dmdirc.actions.CoreActionType;
29
+import com.dmdirc.ui.InputWindow;
29 30
 
30 31
 import java.util.Hashtable;
31 32
 import java.util.Map;
@@ -75,7 +76,7 @@ public abstract class CommandParser {
75 76
      * @param parseChannel Whether or not to try and parse the first argument
76 77
      * as a channel name
77 78
      */
78
-    public final void parseCommand(final CommandWindow origin,
79
+    public final void parseCommand(final InputWindow origin,
79 80
             final String line, final boolean parseChannel) {
80 81
         if (line.length() == 0) {
81 82
             return;
@@ -93,7 +94,7 @@ public abstract class CommandParser {
93 94
             final String[] args = line.split(" ");
94 95
             final String command = args[0].substring(offset);
95 96
             String[] comargs;
96
-                        
97
+            
97 98
             assert args.length > 0;
98 99
             
99 100
             if (args.length >= 2 && parseChannel && origin != null
@@ -144,7 +145,7 @@ public abstract class CommandParser {
144 145
      * @param origin The window in which the command was typed
145 146
      * @param line The line to be parsed
146 147
      */
147
-    public final void parseCommand(final CommandWindow origin,
148
+    public final void parseCommand(final InputWindow origin,
148 149
             final String line) {
149 150
         parseCommand(origin, line, true);
150 151
     }
@@ -154,7 +155,7 @@ public abstract class CommandParser {
154 155
      * @param origin The window in which the command was typed
155 156
      * @param line The line to be parsed
156 157
      */
157
-    public final void parseCommandCtrl(final CommandWindow origin, final String line) {
158
+    public final void parseCommandCtrl(final InputWindow origin, final String line) {
158 159
         handleNonCommand(origin, line);
159 160
     }
160 161
     
@@ -165,7 +166,7 @@ public abstract class CommandParser {
165 166
      * @param command The command to be executed
166 167
      * @param args The arguments to the command
167 168
      */
168
-    protected abstract void executeCommand(final CommandWindow origin,
169
+    protected abstract void executeCommand(final InputWindow origin,
169 170
             final boolean isSilent, final Command command, final String... args);
170 171
     
171 172
     /**
@@ -176,7 +177,7 @@ public abstract class CommandParser {
176 177
      * @param command The command the user tried to execute
177 178
      * @param args The arguments passed to the command
178 179
      */
179
-    protected void handleInvalidCommand(final CommandWindow origin,
180
+    protected void handleInvalidCommand(final InputWindow origin,
180 181
             final String command, final String... args) {
181 182
         if (origin == null) {
182 183
             ActionManager.processEvent(CoreActionType.UNKNOWN_COMMAND, null,
@@ -197,6 +198,6 @@ public abstract class CommandParser {
197 198
      * @param origin The window in which the command was typed
198 199
      * @param line The line input by the user
199 200
      */
200
-    protected abstract void handleNonCommand(final CommandWindow origin,
201
+    protected abstract void handleNonCommand(final InputWindow origin,
201 202
             final String line);
202 203
 }

+ 0
- 93
src/com/dmdirc/commandparser/CommandWindow.java Voir le fichier

@@ -1,93 +0,0 @@
1
-/*
2
- * Copyright (c) 2006-2007 Chris Smith, Shane Mc Cormack, Gregory Holmes
3
- *
4
- * Permission is hereby granted, free of charge, to any person obtaining a copy
5
- * of this software and associated documentation files (the "Software"), to deal
6
- * in the Software without restriction, including without limitation the rights
7
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
- * copies of the Software, and to permit persons to whom the Software is
9
- * furnished to do so, subject to the following conditions:
10
- *
11
- * The above copyright notice and this permission notice shall be included in
12
- * all copies or substantial portions of the Software.
13
- *
14
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
- * SOFTWARE.
21
- */
22
-
23
-package com.dmdirc.commandparser;
24
-
25
-import com.dmdirc.FrameContainer;
26
-import com.dmdirc.Server;
27
-import com.dmdirc.identities.ConfigManager;
28
-
29
-/**
30
- * A command window is a window that allows the user to input a command (that's
31
- * passed to a command parser). This interface includes methods that are required
32
- * to allow the commands to interact with the user via the window.
33
- * @author chris
34
- */
35
-public interface CommandWindow {
36
-    
37
-    /**
38
-     * Formats the arguments using the Formatter, then adds the result to the
39
-     * main text area.
40
-     * @param messageType The type of this message
41
-     * @param args The arguments for the message
42
-     */
43
-    void addLine(String messageType, Object... args);
44
-    
45
-    /**
46
-     * Formats the arguments using the Formatter, then adds the result to the
47
-     * main text area.
48
-     * @param messageType The type of this message
49
-     * @param args The arguments for the message
50
-     */
51
-    void addLine(StringBuffer messageType, Object... args);
52
-    
53
-    /**
54
-     * Clears the main text area of the command window.
55
-     */
56
-    void clear();
57
-    
58
-    /**
59
-     * Retrieves the config manager for this command window.
60
-     * @return This window's config manager
61
-     */
62
-    ConfigManager getConfigManager();
63
-    
64
-    /**
65
-     * Retrieves the command Parser for this command window.
66
-     * @return This window's command Parser
67
-     */
68
-    CommandParser getCommandParser();
69
-    
70
-    /**
71
-     * Retrieves the server associated with this command window.
72
-     * @return This window's associated server instance
73
-     * @deprecated No point proxying this - use getContainer().getServer()
74
-     */
75
-    @Deprecated
76
-    Server getServer();
77
-    
78
-    /**
79
-     * Retrieves the container that owns this command window.
80
-     * @return The container that owns this command window.
81
-     */
82
-    FrameContainer getContainer();
83
-    
84
-    /**
85
-     * Determines if the current frame is visible.
86
-     *
87
-     * @return boolean visibility
88
-     * @deprecated Visibility is of no concern to command windows
89
-     */
90
-    @Deprecated
91
-    boolean isVisible();
92
-    
93
-}

+ 3
- 1
src/com/dmdirc/commandparser/GlobalCommand.java Voir le fichier

@@ -22,6 +22,8 @@
22 22
 
23 23
 package com.dmdirc.commandparser;
24 24
 
25
+import com.dmdirc.ui.InputWindow;
26
+
25 27
 /**
26 28
  * Represents a generic global command. Global commands are associated with
27 29
  * no servers.
@@ -36,5 +38,5 @@ public abstract class GlobalCommand extends Command {
36 38
      * @param isSilent Whether this command is silenced or not
37 39
      * @param args Arguments passed to this command
38 40
      */
39
-    public abstract void execute(CommandWindow origin, boolean isSilent, String ... args);
41
+    public abstract void execute(InputWindow origin, boolean isSilent, String ... args);
40 42
 }

+ 3
- 2
src/com/dmdirc/commandparser/GlobalCommandParser.java Voir le fichier

@@ -24,6 +24,7 @@ package com.dmdirc.commandparser;
24 24
 
25 25
 import com.dmdirc.logger.ErrorLevel;
26 26
 import com.dmdirc.logger.Logger;
27
+import com.dmdirc.ui.InputWindow;
27 28
 
28 29
 /**
29 30
  * The command parser used for global commands.
@@ -61,7 +62,7 @@ public final class GlobalCommandParser extends CommandParser {
61 62
     }
62 63
     
63 64
     /** {@inheritDoc} */
64
-    protected void executeCommand(final CommandWindow origin,
65
+    protected void executeCommand(final InputWindow origin,
65 66
             final boolean isSilent, final Command command, final String... args) {
66 67
         ((GlobalCommand) command).execute(origin, isSilent, args);
67 68
     }
@@ -72,7 +73,7 @@ public final class GlobalCommandParser extends CommandParser {
72 73
      * @param origin The window in which the command was typed
73 74
      * @param line The line input by the user
74 75
      */
75
-    protected void handleNonCommand(final CommandWindow origin, final String line) {
76
+    protected void handleNonCommand(final InputWindow origin, final String line) {
76 77
         if (origin == null) {
77 78
             Logger.error(ErrorLevel.WARNING, "Invalid global command: " + line);
78 79
         } else {

+ 2
- 1
src/com/dmdirc/commandparser/QueryCommand.java Voir le fichier

@@ -24,6 +24,7 @@ package com.dmdirc.commandparser;
24 24
 
25 25
 import com.dmdirc.Query;
26 26
 import com.dmdirc.Server;
27
+import com.dmdirc.ui.InputWindow;
27 28
 
28 29
 /**
29 30
  * Represents a command which can be performed only in the context of a query.
@@ -39,6 +40,6 @@ public abstract class QueryCommand extends Command {
39 40
      * @param isSilent Whether this command is silenced or not
40 41
      * @param args Arguments passed to this command
41 42
      */
42
-    public abstract void execute(CommandWindow origin, Server server, Query query,
43
+    public abstract void execute(InputWindow origin, Server server, Query query,
43 44
             boolean isSilent, String... args);
44 45
 }

+ 3
- 2
src/com/dmdirc/commandparser/QueryCommandParser.java Voir le fichier

@@ -24,6 +24,7 @@ package com.dmdirc.commandparser;
24 24
 
25 25
 import com.dmdirc.Query;
26 26
 import com.dmdirc.Server;
27
+import com.dmdirc.ui.InputWindow;
27 28
 
28 29
 /**
29 30
  * A command parser that is tailored for use in a query environment. Handles
@@ -61,7 +62,7 @@ public final class QueryCommandParser extends CommandParser {
61 62
     }
62 63
     
63 64
     /** {@inheritDoc} */
64
-    protected void executeCommand(final CommandWindow origin,
65
+    protected void executeCommand(final InputWindow origin,
65 66
             final boolean isSilent, final Command command, final String... args) {
66 67
         if (command instanceof QueryCommand) {
67 68
             ((QueryCommand) command).execute(origin, server, query, isSilent, args);
@@ -78,7 +79,7 @@ public final class QueryCommandParser extends CommandParser {
78 79
      * @param origin The window in which the command was typed
79 80
      * @param line The line input by the user
80 81
      */
81
-    protected void handleNonCommand(final CommandWindow origin, final String line) {
82
+    protected void handleNonCommand(final InputWindow origin, final String line) {
82 83
         query.sendLine(line);
83 84
     }
84 85
     

+ 2
- 1
src/com/dmdirc/commandparser/ServerCommand.java Voir le fichier

@@ -23,6 +23,7 @@
23 23
 package com.dmdirc.commandparser;
24 24
 
25 25
 import com.dmdirc.Server;
26
+import com.dmdirc.ui.InputWindow;
26 27
 
27 28
 /**
28 29
  * Represents a generic server command. Server commands are associated with
@@ -38,6 +39,6 @@ public abstract class ServerCommand extends Command {
38 39
      * @param isSilent Whether this command is silenced or not
39 40
      * @param args Arguments passed to this command
40 41
      */
41
-    public abstract void execute(CommandWindow origin, Server server,
42
+    public abstract void execute(InputWindow origin, Server server,
42 43
             boolean isSilent, String ... args);
43 44
 }

+ 3
- 2
src/com/dmdirc/commandparser/ServerCommandParser.java Voir le fichier

@@ -23,6 +23,7 @@
23 23
 package com.dmdirc.commandparser;
24 24
 
25 25
 import com.dmdirc.Server;
26
+import com.dmdirc.ui.InputWindow;
26 27
 
27 28
 /**
28 29
  * A command parser used in the context of a server.
@@ -52,7 +53,7 @@ public final class ServerCommandParser extends CommandParser {
52 53
     }
53 54
     
54 55
     /** {@inheritDoc} */
55
-    protected void executeCommand(final CommandWindow origin,
56
+    protected void executeCommand(final InputWindow origin,
56 57
             final boolean isSilent, final Command command, final String... args) {
57 58
         if (command instanceof ServerCommand) {
58 59
             ((ServerCommand) command).execute(origin, server, isSilent, args);
@@ -67,7 +68,7 @@ public final class ServerCommandParser extends CommandParser {
67 68
      * @param origin The window in which the command was typed
68 69
      * @param line The line input by the user
69 70
      */
70
-    protected void handleNonCommand(final CommandWindow origin, final String line) {
71
+    protected void handleNonCommand(final InputWindow origin, final String line) {
71 72
         server.getParser().sendLine(line);
72 73
     }
73 74
     

+ 2
- 2
src/com/dmdirc/commandparser/commands/channel/Ban.java Voir le fichier

@@ -26,8 +26,8 @@ import com.dmdirc.Channel;
26 26
 import com.dmdirc.Server;
27 27
 import com.dmdirc.commandparser.ChannelCommand;
28 28
 import com.dmdirc.commandparser.CommandManager;
29
-import com.dmdirc.commandparser.CommandWindow;
30 29
 import com.dmdirc.parser.ChannelClientInfo;
30
+import com.dmdirc.ui.InputWindow;
31 31
 
32 32
 /**
33 33
  * The kick command bans a specified user or host from the channel.
@@ -51,7 +51,7 @@ public final class Ban extends ChannelCommand {
51 51
      * @param isSilent Whether this command is silenced or not
52 52
      * @param args The user supplied arguments
53 53
      */
54
-    public void execute(final CommandWindow origin, final Server server,
54
+    public void execute(final InputWindow origin, final Server server,
55 55
             final Channel channel, final boolean isSilent, final String... args) {
56 56
         
57 57
         String host = args[0];

+ 2
- 2
src/com/dmdirc/commandparser/commands/channel/Benchmark.java Voir le fichier

@@ -26,7 +26,7 @@ import com.dmdirc.Channel;
26 26
 import com.dmdirc.Server;
27 27
 import com.dmdirc.commandparser.ChannelCommand;
28 28
 import com.dmdirc.commandparser.CommandManager;
29
-import com.dmdirc.commandparser.CommandWindow;
29
+import com.dmdirc.ui.InputWindow;
30 30
 
31 31
 /**
32 32
  * The benchmark command allows us to fake a stream of channel messages for
@@ -50,7 +50,7 @@ public final class Benchmark extends ChannelCommand {
50 50
      * @param isSilent Whether this command is silenced or not
51 51
      * @param args The user supplied arguments
52 52
      */
53
-    public void execute(final CommandWindow origin, final Server server,
53
+    public void execute(final InputWindow origin, final Server server,
54 54
             final Channel channel, final boolean isSilent, final String... args) {
55 55
         final String[] strings = {
56 56
             "this is a test",

+ 2
- 2
src/com/dmdirc/commandparser/commands/channel/ChannelSettings.java Voir le fichier

@@ -26,7 +26,7 @@ import com.dmdirc.Channel;
26 26
 import com.dmdirc.Server;
27 27
 import com.dmdirc.commandparser.ChannelCommand;
28 28
 import com.dmdirc.commandparser.CommandManager;
29
-import com.dmdirc.commandparser.CommandWindow;
29
+import com.dmdirc.ui.InputWindow;
30 30
 import com.dmdirc.ui.dialogs.channelsetting.ChannelSettingsDialog;
31 31
 
32 32
 /**
@@ -50,7 +50,7 @@ public final class ChannelSettings extends ChannelCommand {
50 50
      * @param isSilent Whether this command is silenced or not
51 51
      * @param args The user supplied arguments
52 52
      */
53
-    public void execute(final CommandWindow origin, final Server server,
53
+    public void execute(final InputWindow origin, final Server server,
54 54
             final Channel channel, final boolean isSilent, final String... args) {
55 55
         new ChannelSettingsDialog(channel).setVisible(true);
56 56
     }

+ 2
- 2
src/com/dmdirc/commandparser/commands/channel/Cycle.java Voir le fichier

@@ -26,7 +26,7 @@ import com.dmdirc.Channel;
26 26
 import com.dmdirc.Server;
27 27
 import com.dmdirc.commandparser.ChannelCommand;
28 28
 import com.dmdirc.commandparser.CommandManager;
29
-import com.dmdirc.commandparser.CommandWindow;
29
+import com.dmdirc.ui.InputWindow;
30 30
 
31 31
 /**
32 32
  * The cycle command allows users to rapidly part and rejoin a channel.
@@ -49,7 +49,7 @@ public final class Cycle extends ChannelCommand {
49 49
      * @param isSilent Whether this command is silenced or not
50 50
      * @param args The user supplied arguments
51 51
      */
52
-    public void execute(final CommandWindow origin, final Server server,
52
+    public void execute(final InputWindow origin, final Server server,
53 53
             final Channel channel, final boolean isSilent, final String... args) {
54 54
         channel.part(origin.getConfigManager().getOption("general", "cyclemessage"));
55 55
         channel.join();

+ 2
- 2
src/com/dmdirc/commandparser/commands/channel/Kick.java Voir le fichier

@@ -26,7 +26,7 @@ import com.dmdirc.Channel;
26 26
 import com.dmdirc.Server;
27 27
 import com.dmdirc.commandparser.ChannelCommand;
28 28
 import com.dmdirc.commandparser.CommandManager;
29
-import com.dmdirc.commandparser.CommandWindow;
29
+import com.dmdirc.ui.InputWindow;
30 30
 
31 31
 /**
32 32
  * The kick command kicks a specified user from the channel.
@@ -50,7 +50,7 @@ public final class Kick extends ChannelCommand {
50 50
      * @param isSilent Whether this command is silenced or not
51 51
      * @param args The user supplied arguments
52 52
      */
53
-    public void execute(final CommandWindow origin, final Server server,
53
+    public void execute(final InputWindow origin, final Server server,
54 54
             final Channel channel, final boolean isSilent, final String... args) {
55 55
         final String[] newArgs = new String[2];
56 56
         newArgs[0] = args[0]; // Nickname

+ 2
- 2
src/com/dmdirc/commandparser/commands/channel/KickEmpty.java Voir le fichier

@@ -27,7 +27,7 @@ import com.dmdirc.Config;
27 27
 import com.dmdirc.Server;
28 28
 import com.dmdirc.commandparser.ChannelCommand;
29 29
 import com.dmdirc.commandparser.CommandManager;
30
-import com.dmdirc.commandparser.CommandWindow;
30
+import com.dmdirc.ui.InputWindow;
31 31
 
32 32
 /**
33 33
  * The kick/0 command informs the user of the correct usage of /kick.
@@ -50,7 +50,7 @@ public final class KickEmpty extends ChannelCommand {
50 50
      * @param isSilent Whether this command is silenced or not
51 51
      * @param args The user supplied arguments
52 52
      */
53
-    public void execute(final CommandWindow origin, final Server server,
53
+    public void execute(final InputWindow origin, final Server server,
54 54
             final Channel channel, final boolean isSilent, final String... args) {
55 55
         sendLine(origin, isSilent, "commandUsage", Config.getCommandChar(), "kick", "<user> [reason]");
56 56
     }

+ 2
- 2
src/com/dmdirc/commandparser/commands/channel/KickReason.java Voir le fichier

@@ -26,8 +26,8 @@ import com.dmdirc.Channel;
26 26
 import com.dmdirc.Server;
27 27
 import com.dmdirc.commandparser.ChannelCommand;
28 28
 import com.dmdirc.commandparser.CommandManager;
29
-import com.dmdirc.commandparser.CommandWindow;
30 29
 import com.dmdirc.parser.ChannelClientInfo;
30
+import com.dmdirc.ui.InputWindow;
31 31
 
32 32
 /**
33 33
  * The kick command kicks a specified user from the channel.
@@ -51,7 +51,7 @@ public final class KickReason extends ChannelCommand {
51 51
      * @param isSilent Whether this command is silenced or not
52 52
      * @param args The user supplied arguments
53 53
      */
54
-    public void execute(final CommandWindow origin, final Server server,
54
+    public void execute(final InputWindow origin, final Server server,
55 55
             final Channel channel, final boolean isSilent, final String... args) {
56 56
         
57 57
         final ChannelClientInfo victim = channel.getChannelInfo().getUser(args[0]);

+ 2
- 2
src/com/dmdirc/commandparser/commands/channel/Me.java Voir le fichier

@@ -26,7 +26,7 @@ import com.dmdirc.Channel;
26 26
 import com.dmdirc.Server;
27 27
 import com.dmdirc.commandparser.ChannelCommand;
28 28
 import com.dmdirc.commandparser.CommandManager;
29
-import com.dmdirc.commandparser.CommandWindow;
29
+import com.dmdirc.ui.InputWindow;
30 30
 
31 31
 /**
32 32
  * The me command sends a CTCP action to the current channel.
@@ -49,7 +49,7 @@ public final class Me extends ChannelCommand {
49 49
      * @param isSilent Whether this command is silenced or not
50 50
      * @param args The user supplied arguments
51 51
      */
52
-    public void execute(final CommandWindow origin, final Server server,
52
+    public void execute(final InputWindow origin, final Server server,
53 53
             final Channel channel, final boolean isSilent, final String... args) {
54 54
         channel.sendAction(implodeArgs(args));
55 55
     }

+ 2
- 2
src/com/dmdirc/commandparser/commands/channel/MeEmpty.java Voir le fichier

@@ -27,7 +27,7 @@ import com.dmdirc.Config;
27 27
 import com.dmdirc.Server;
28 28
 import com.dmdirc.commandparser.ChannelCommand;
29 29
 import com.dmdirc.commandparser.CommandManager;
30
-import com.dmdirc.commandparser.CommandWindow;
30
+import com.dmdirc.ui.InputWindow;
31 31
 
32 32
 /**
33 33
  * The me/0 command simply tells the user that the correct usage of /me requires
@@ -51,7 +51,7 @@ public final class MeEmpty extends ChannelCommand {
51 51
      * @param isSilent Whether this command is silenced or not
52 52
      * @param args The user supplied arguments
53 53
      */
54
-    public void execute(final CommandWindow origin, final Server server,
54
+    public void execute(final InputWindow origin, final Server server,
55 55
             final Channel channel, final boolean isSilent, final String... args) {
56 56
         sendLine(origin, isSilent, "commandUsage", Config.getCommandChar(), "me", "<action>");
57 57
     }

+ 2
- 2
src/com/dmdirc/commandparser/commands/channel/Mode.java Voir le fichier

@@ -26,8 +26,8 @@ import com.dmdirc.Channel;
26 26
 import com.dmdirc.Server;
27 27
 import com.dmdirc.commandparser.ChannelCommand;
28 28
 import com.dmdirc.commandparser.CommandManager;
29
-import com.dmdirc.commandparser.CommandWindow;
30 29
 import com.dmdirc.parser.ChannelInfo;
30
+import com.dmdirc.ui.InputWindow;
31 31
 
32 32
 /**
33 33
  * The mode command allows the user to inspect and change channel modes.
@@ -50,7 +50,7 @@ public final class Mode extends ChannelCommand {
50 50
      * @param isSilent Whether this command is silenced or not
51 51
      * @param args The user supplied arguments
52 52
      */
53
-    public void execute(final CommandWindow origin, final Server server,
53
+    public void execute(final InputWindow origin, final Server server,
54 54
             final Channel channel, final boolean isSilent, final String... args) {
55 55
         final ChannelInfo cChannel = channel.getChannelInfo();
56 56
         

+ 2
- 2
src/com/dmdirc/commandparser/commands/channel/Part.java Voir le fichier

@@ -26,7 +26,7 @@ import com.dmdirc.Channel;
26 26
 import com.dmdirc.Server;
27 27
 import com.dmdirc.commandparser.ChannelCommand;
28 28
 import com.dmdirc.commandparser.CommandManager;
29
-import com.dmdirc.commandparser.CommandWindow;
29
+import com.dmdirc.ui.InputWindow;
30 30
 
31 31
 /**
32 32
  * The part command parts the current channel with a specified part message.
@@ -49,7 +49,7 @@ public final class Part extends ChannelCommand {
49 49
      * @param isSilent Whether this command is silenced or not
50 50
      * @param args The user supplied arguments
51 51
      */
52
-    public void execute(final CommandWindow origin, final Server server,
52
+    public void execute(final InputWindow origin, final Server server,
53 53
             final Channel channel, final boolean isSilent, final String... args) {
54 54
         channel.part(implodeArgs(args));
55 55
         channel.closeWindow();

+ 2
- 2
src/com/dmdirc/commandparser/commands/channel/PartDefault.java Voir le fichier

@@ -26,7 +26,7 @@ import com.dmdirc.Channel;
26 26
 import com.dmdirc.Server;
27 27
 import com.dmdirc.commandparser.ChannelCommand;
28 28
 import com.dmdirc.commandparser.CommandManager;
29
-import com.dmdirc.commandparser.CommandWindow;
29
+import com.dmdirc.ui.InputWindow;
30 30
 
31 31
 /**
32 32
  * The PartDefault command (part/0) is used when the user does not specify a
@@ -51,7 +51,7 @@ public final class PartDefault extends ChannelCommand {
51 51
      * @param isSilent Whether this command is silenced or not
52 52
      * @param args The user supplied arguments
53 53
      */
54
-    public void execute(final CommandWindow origin, final Server server,
54
+    public void execute(final InputWindow origin, final Server server,
55 55
             final Channel channel, final boolean isSilent, final String... args) {
56 56
         final ChannelCommand com = CommandManager.getChannelCommand("part");
57 57
         com.execute(origin, server, channel, isSilent, origin.getConfigManager().getOption("general", "partmessage"));

+ 2
- 2
src/com/dmdirc/commandparser/commands/channel/SetNickColour.java Voir le fichier

@@ -28,9 +28,9 @@ import com.dmdirc.Config;
28 28
 import com.dmdirc.Server;
29 29
 import com.dmdirc.commandparser.ChannelCommand;
30 30
 import com.dmdirc.commandparser.CommandManager;
31
-import com.dmdirc.commandparser.CommandWindow;
32 31
 import com.dmdirc.parser.ChannelClientInfo;
33 32
 import com.dmdirc.ui.ChannelFrame;
33
+import com.dmdirc.ui.InputWindow;
34 34
 import com.dmdirc.ui.messages.ColourManager;
35 35
 
36 36
 import java.awt.Color;
@@ -57,7 +57,7 @@ public final class SetNickColour extends ChannelCommand {
57 57
      * @param args The user supplied arguments
58 58
      */
59 59
     @SuppressWarnings("unchecked")
60
-    public void execute(final CommandWindow origin, final Server server,
60
+    public void execute(final InputWindow origin, final Server server,
61 61
             final Channel channel, final boolean isSilent, final String... args) {
62 62
         
63 63
         int offset = 0;

+ 2
- 2
src/com/dmdirc/commandparser/commands/channel/SetTopic.java Voir le fichier

@@ -26,8 +26,8 @@ import com.dmdirc.Channel;
26 26
 import com.dmdirc.Server;
27 27
 import com.dmdirc.commandparser.ChannelCommand;
28 28
 import com.dmdirc.commandparser.CommandManager;
29
-import com.dmdirc.commandparser.CommandWindow;
30 29
 import com.dmdirc.parser.ChannelInfo;
30
+import com.dmdirc.ui.InputWindow;
31 31
 
32 32
 /**
33 33
  * The set topic command allows the user to change the current topic.
@@ -50,7 +50,7 @@ public final class SetTopic extends ChannelCommand {
50 50
      * @param isSilent Whether this command is silenced or not
51 51
      * @param args The user supplied arguments
52 52
      */
53
-    public void execute(final CommandWindow origin, final Server server,
53
+    public void execute(final InputWindow origin, final Server server,
54 54
             final Channel channel, final boolean isSilent, final String... args) {
55 55
         final ChannelInfo cChannel = channel.getChannelInfo();
56 56
         final String newTopic = implodeArgs(args);

+ 2
- 2
src/com/dmdirc/commandparser/commands/channel/ShowTopic.java Voir le fichier

@@ -26,8 +26,8 @@ import com.dmdirc.Channel;
26 26
 import com.dmdirc.Server;
27 27
 import com.dmdirc.commandparser.ChannelCommand;
28 28
 import com.dmdirc.commandparser.CommandManager;
29
-import com.dmdirc.commandparser.CommandWindow;
30 29
 import com.dmdirc.parser.ChannelInfo;
30
+import com.dmdirc.ui.InputWindow;
31 31
 
32 32
 /**
33 33
  * The show topic command shows the user the current topic.
@@ -50,7 +50,7 @@ public final class ShowTopic extends ChannelCommand {
50 50
      * @param isSilent Whether this command is silenced or not
51 51
      * @param args The user supplied arguments
52 52
      */
53
-    public void execute(final CommandWindow origin, final Server server,
53
+    public void execute(final InputWindow origin, final Server server,
54 54
             final Channel channel, final boolean isSilent, final String... args) {
55 55
         final ChannelInfo cChannel = channel.getChannelInfo();
56 56
         

+ 3
- 3
src/com/dmdirc/commandparser/commands/global/Active.java Voir le fichier

@@ -23,8 +23,8 @@
23 23
 package com.dmdirc.commandparser.commands.global;
24 24
 
25 25
 import com.dmdirc.commandparser.CommandManager;
26
-import com.dmdirc.commandparser.CommandWindow;
27 26
 import com.dmdirc.commandparser.GlobalCommand;
27
+import com.dmdirc.ui.InputWindow;
28 28
 import com.dmdirc.ui.MainFrame;
29 29
 
30 30
 /**
@@ -43,11 +43,11 @@ public final class Active extends GlobalCommand {
43 43
     }
44 44
     
45 45
     /** {@inheritDoc} */
46
-    public void execute(final CommandWindow origin, final boolean isSilent,
46
+    public void execute(final InputWindow origin, final boolean isSilent,
47 47
             final String... args) {
48 48
         final String command = implodeArgs(args);
49 49
         
50
-        final CommandWindow window = (CommandWindow) MainFrame.getMainFrame().getActiveFrame();
50
+        final InputWindow window = (InputWindow) MainFrame.getMainFrame().getActiveFrame();
51 51
         
52 52
         if (window != null) {
53 53
             window.getCommandParser().parseCommand(window, command);

+ 3
- 3
src/com/dmdirc/commandparser/commands/global/AllServers.java Voir le fichier

@@ -25,8 +25,8 @@ package com.dmdirc.commandparser.commands.global;
25 25
 import com.dmdirc.Server;
26 26
 import com.dmdirc.ServerManager;
27 27
 import com.dmdirc.commandparser.CommandManager;
28
-import com.dmdirc.commandparser.CommandWindow;
29 28
 import com.dmdirc.commandparser.GlobalCommand;
29
+import com.dmdirc.ui.InputWindow;
30 30
 
31 31
 /**
32 32
  * The AllServers command allows users to issue commands to all servers.
@@ -42,10 +42,10 @@ public final class AllServers extends GlobalCommand {
42 42
     }
43 43
     
44 44
     /** {@inheritDoc} */
45
-    public void execute(final CommandWindow origin, final boolean isSilent,
45
+    public void execute(final InputWindow origin, final boolean isSilent,
46 46
             final String... args) {
47 47
         final String command = implodeArgs(args);
48
-        CommandWindow window;
48
+        InputWindow window;
49 49
         
50 50
         for (Server target : ServerManager.getServerManager().getServers()) {
51 51
             window = target.getFrame();

+ 2
- 2
src/com/dmdirc/commandparser/commands/global/Exit.java Voir le fichier

@@ -24,8 +24,8 @@ package com.dmdirc.commandparser.commands.global;
24 24
 
25 25
 import com.dmdirc.Main;
26 26
 import com.dmdirc.commandparser.CommandManager;
27
-import com.dmdirc.commandparser.CommandWindow;
28 27
 import com.dmdirc.commandparser.GlobalCommand;
28
+import com.dmdirc.ui.InputWindow;
29 29
 
30 30
 /**
31 31
  * The exit command allows the user to quit DMDirc with a custom quit message.
@@ -45,7 +45,7 @@ public final class Exit extends GlobalCommand {
45 45
     }
46 46
     
47 47
     /** {@inheritDoc} */
48
-    public void execute(final CommandWindow origin, final boolean isSilent,
48
+    public void execute(final InputWindow origin, final boolean isSilent,
49 49
             final String... args) {
50 50
         Main.quit(implodeArgs(args));
51 51
     }

+ 2
- 2
src/com/dmdirc/commandparser/commands/global/ExitDefault.java Voir le fichier

@@ -24,8 +24,8 @@ package com.dmdirc.commandparser.commands.global;
24 24
 
25 25
 import com.dmdirc.Config;
26 26
 import com.dmdirc.commandparser.CommandManager;
27
-import com.dmdirc.commandparser.CommandWindow;
28 27
 import com.dmdirc.commandparser.GlobalCommand;
28
+import com.dmdirc.ui.InputWindow;
29 29
 
30 30
 /**
31 31
  * Represents the exit/0 command (i.e., an exit with no arguments). Reads the
@@ -45,7 +45,7 @@ public final class ExitDefault extends GlobalCommand {
45 45
     }
46 46
     
47 47
     /** {@inheritDoc} */
48
-    public void execute(final CommandWindow origin, final boolean isSilent,
48
+    public void execute(final InputWindow origin, final boolean isSilent,
49 49
             final String... args) {
50 50
         String def;
51 51
         

+ 2
- 2
src/com/dmdirc/commandparser/commands/global/LoadFormatter.java Voir le fichier

@@ -23,8 +23,8 @@
23 23
 package com.dmdirc.commandparser.commands.global;
24 24
 
25 25
 import com.dmdirc.commandparser.CommandManager;
26
-import com.dmdirc.commandparser.CommandWindow;
27 26
 import com.dmdirc.commandparser.GlobalCommand;
27
+import com.dmdirc.ui.InputWindow;
28 28
 import com.dmdirc.ui.messages.Formatter;
29 29
 
30 30
 /**
@@ -43,7 +43,7 @@ public final class LoadFormatter extends GlobalCommand {
43 43
     }
44 44
     
45 45
     /** {@inheritDoc} */
46
-    public void execute(final CommandWindow origin, final boolean isSilent,
46
+    public void execute(final InputWindow origin, final boolean isSilent,
47 47
             final String... args) {
48 48
         if (Formatter.loadFile(args[0])) {
49 49
             sendLine(origin, isSilent, "commandOutput", "Formatter loaded.");

+ 3
- 2
src/com/dmdirc/commandparser/commands/global/LoadPlugin.java Voir le fichier

@@ -23,10 +23,11 @@
23 23
 package com.dmdirc.commandparser.commands.global;
24 24
 
25 25
 import com.dmdirc.commandparser.CommandManager;
26
-import com.dmdirc.commandparser.CommandWindow;
27 26
 import com.dmdirc.commandparser.GlobalCommand;
28 27
 import com.dmdirc.commandparser.IntelligentCommand;
29 28
 import com.dmdirc.plugins.PluginManager;
29
+import com.dmdirc.ui.InputWindow;
30
+
30 31
 import java.util.ArrayList;
31 32
 import java.util.Arrays;
32 33
 import java.util.List;
@@ -47,7 +48,7 @@ public final class LoadPlugin extends GlobalCommand implements IntelligentComman
47 48
     }
48 49
     
49 50
     /** {@inheritDoc} */
50
-    public void execute(final CommandWindow origin, final boolean isSilent,
51
+    public void execute(final InputWindow origin, final boolean isSilent,
51 52
             final String... args) {
52 53
         if (PluginManager.getPluginManager().addPlugin(args[0])) {
53 54
             PluginManager.getPluginManager().getPlugin(args[0]).setActive(true);

+ 2
- 2
src/com/dmdirc/commandparser/commands/global/NewServer.java Voir le fichier

@@ -25,9 +25,9 @@ package com.dmdirc.commandparser.commands.global;
25 25
 import com.dmdirc.Config;
26 26
 import com.dmdirc.Server;
27 27
 import com.dmdirc.commandparser.CommandManager;
28
-import com.dmdirc.commandparser.CommandWindow;
29 28
 import com.dmdirc.commandparser.GlobalCommand;
30 29
 import com.dmdirc.identities.IdentityManager;
30
+import com.dmdirc.ui.InputWindow;
31 31
 
32 32
 /**
33 33
  * The new server command allows users to open a new server window.
@@ -45,7 +45,7 @@ public final class NewServer extends GlobalCommand {
45 45
     }
46 46
     
47 47
     /** {@inheritDoc} */
48
-    public void execute(final CommandWindow origin, final boolean isSilent,
48
+    public void execute(final InputWindow origin, final boolean isSilent,
49 49
             final String... args) {
50 50
         if (args.length == 0) {
51 51
             origin.addLine("commandUsage", Config.getCommandChar(), "newserver",

+ 2
- 2
src/com/dmdirc/commandparser/commands/global/Notify.java Voir le fichier

@@ -25,7 +25,7 @@ package com.dmdirc.commandparser.commands.global;
25 25
 import com.dmdirc.Config;
26 26
 import com.dmdirc.commandparser.GlobalCommand;
27 27
 import com.dmdirc.commandparser.CommandManager;
28
-import com.dmdirc.commandparser.CommandWindow;
28
+import com.dmdirc.ui.InputWindow;
29 29
 import com.dmdirc.ui.messages.ColourManager;
30 30
 
31 31
 import java.awt.Color;
@@ -54,7 +54,7 @@ public final class Notify extends GlobalCommand {
54 54
      * @param isSilent Whether this command is silenced or not
55 55
      * @param args The user supplied arguments
56 56
      */
57
-    public void execute(final CommandWindow origin, final boolean isSilent,
57
+    public void execute(final InputWindow origin, final boolean isSilent,
58 58
             final String... args) {
59 59
         final Color colour = ColourManager.parseColour(args[0], null);
60 60
         

+ 2
- 2
src/com/dmdirc/commandparser/commands/global/ReloadActions.java Voir le fichier

@@ -24,8 +24,8 @@ package com.dmdirc.commandparser.commands.global;
24 24
 
25 25
 import com.dmdirc.actions.ActionManager;
26 26
 import com.dmdirc.commandparser.CommandManager;
27
-import com.dmdirc.commandparser.CommandWindow;
28 27
 import com.dmdirc.commandparser.GlobalCommand;
28
+import com.dmdirc.ui.InputWindow;
29 29
 
30 30
 /**
31 31
  * Allows the user to reload actions.
@@ -43,7 +43,7 @@ public final class ReloadActions extends GlobalCommand {
43 43
     }
44 44
     
45 45
     /** {@inheritDoc} */
46
-    public void execute(final CommandWindow origin, final boolean isSilent,
46
+    public void execute(final InputWindow origin, final boolean isSilent,
47 47
             final String... args) {
48 48
         ActionManager.loadActions();
49 49
         sendLine(origin, isSilent, "commandOutput", "Actions reloaded.");

+ 2
- 2
src/com/dmdirc/commandparser/commands/global/ReloadFormatter.java Voir le fichier

@@ -23,8 +23,8 @@
23 23
 package com.dmdirc.commandparser.commands.global;
24 24
 
25 25
 import com.dmdirc.commandparser.CommandManager;
26
-import com.dmdirc.commandparser.CommandWindow;
27 26
 import com.dmdirc.commandparser.GlobalCommand;
27
+import com.dmdirc.ui.InputWindow;
28 28
 import com.dmdirc.ui.messages.Formatter;
29 29
 
30 30
 /**
@@ -43,7 +43,7 @@ public final class ReloadFormatter extends GlobalCommand {
43 43
     }
44 44
     
45 45
     /** {@inheritDoc} */
46
-    public void execute(final CommandWindow origin, final boolean isSilent,
46
+    public void execute(final InputWindow origin, final boolean isSilent,
47 47
             final String... args) {
48 48
         Formatter.reload();
49 49
         sendLine(origin, isSilent, "commandOutput", "Formatter reloaded.");

+ 2
- 2
src/com/dmdirc/commandparser/commands/global/ReloadPlugin.java Voir le fichier

@@ -23,10 +23,10 @@
23 23
 package com.dmdirc.commandparser.commands.global;
24 24
 
25 25
 import com.dmdirc.commandparser.CommandManager;
26
-import com.dmdirc.commandparser.CommandWindow;
27 26
 import com.dmdirc.commandparser.GlobalCommand;
28 27
 import com.dmdirc.plugins.Plugin;
29 28
 import com.dmdirc.plugins.PluginManager;
29
+import com.dmdirc.ui.InputWindow;
30 30
 
31 31
 /**
32 32
  * Allows the user to reload a plugin.
@@ -44,7 +44,7 @@ public final class ReloadPlugin extends GlobalCommand {
44 44
     }
45 45
     
46 46
     /** {@inheritDoc} */
47
-    public void execute(final CommandWindow origin, final boolean isSilent,
47
+    public void execute(final InputWindow origin, final boolean isSilent,
48 48
             final String... args) {
49 49
         Plugin plugin = PluginManager.getPluginManager().getPlugin(args[0]);
50 50
         if (plugin == null) {

+ 2
- 2
src/com/dmdirc/commandparser/commands/global/SaveFormatter.java Voir le fichier

@@ -23,8 +23,8 @@
23 23
 package com.dmdirc.commandparser.commands.global;
24 24
 
25 25
 import com.dmdirc.commandparser.CommandManager;
26
-import com.dmdirc.commandparser.CommandWindow;
27 26
 import com.dmdirc.commandparser.GlobalCommand;
27
+import com.dmdirc.ui.InputWindow;
28 28
 import com.dmdirc.ui.messages.Formatter;
29 29
 
30 30
 /**
@@ -43,7 +43,7 @@ public final class SaveFormatter extends GlobalCommand {
43 43
     }
44 44
     
45 45
     /** {@inheritDoc} */
46
-    public void execute(final CommandWindow origin, final boolean isSilent,
46
+    public void execute(final InputWindow origin, final boolean isSilent,
47 47
             final String... args) {
48 48
         if (Formatter.saveAs(args[0])) {
49 49
             sendLine(origin, isSilent, "commandOutput", "Formatter saved.");

+ 7
- 6
src/com/dmdirc/commandparser/commands/global/Set.java Voir le fichier

@@ -24,9 +24,10 @@ package com.dmdirc.commandparser.commands.global;
24 24
 
25 25
 import com.dmdirc.Config;
26 26
 import com.dmdirc.commandparser.CommandManager;
27
-import com.dmdirc.commandparser.CommandWindow;
28 27
 import com.dmdirc.commandparser.GlobalCommand;
29 28
 import com.dmdirc.commandparser.IntelligentCommand;
29
+import com.dmdirc.ui.InputWindow;
30
+
30 31
 import java.util.ArrayList;
31 32
 import java.util.List;
32 33
 
@@ -46,7 +47,7 @@ public final class Set extends GlobalCommand implements IntelligentCommand {
46 47
     }
47 48
     
48 49
     /** {@inheritDoc} */
49
-    public void execute(final CommandWindow origin, final boolean isSilent,
50
+    public void execute(final InputWindow origin, final boolean isSilent,
50 51
             final String... args) {
51 52
         switch (args.length) {
52 53
         case 0:
@@ -68,7 +69,7 @@ public final class Set extends GlobalCommand implements IntelligentCommand {
68 69
      * @param origin The window the command was issued from
69 70
      * @param isSilent Whether or not the command is being silenced or not
70 71
      */
71
-    private void doDomainList(final CommandWindow origin, final boolean isSilent) {
72
+    private void doDomainList(final InputWindow origin, final boolean isSilent) {
72 73
         final StringBuffer output = new StringBuffer(67);
73 74
         
74 75
         output.append("Valid domains (use ");
@@ -89,7 +90,7 @@ public final class Set extends GlobalCommand implements IntelligentCommand {
89 90
      * @param isSilent Whether or not the command is being silenced or not
90 91
      * @param domain The domain to be inspected
91 92
      */
92
-    private void doOptionsList(final CommandWindow origin,
93
+    private void doOptionsList(final InputWindow origin,
93 94
             final boolean isSilent, final String domain) {
94 95
         final StringBuffer output = new StringBuffer(24);
95 96
         
@@ -119,7 +120,7 @@ public final class Set extends GlobalCommand implements IntelligentCommand {
119 120
      * @param domain The domain of the option
120 121
      * @param option The name of the option
121 122
      */
122
-    private void doShowOption(final CommandWindow origin,
123
+    private void doShowOption(final InputWindow origin,
123 124
             final boolean isSilent, final String domain, final String option) {
124 125
         if (Config.hasOption(domain, option)) {
125 126
             sendLine(origin, isSilent, "commandOutput", "The current value of " + domain + "." + option
@@ -137,7 +138,7 @@ public final class Set extends GlobalCommand implements IntelligentCommand {
137 138
      * @param option The name of the option
138 139
      * @param newvalue The value the option should be set to
139 140
      */
140
-    private void doSetOption(final CommandWindow origin,
141
+    private void doSetOption(final InputWindow origin,
141 142
             final boolean isSilent, final String domain, final String option,
142 143
             final String newvalue) {
143 144
         Config.setOption(domain, option, newvalue);

+ 2
- 2
src/com/dmdirc/commandparser/commands/query/QueryMe.java Voir le fichier

@@ -25,8 +25,8 @@ package com.dmdirc.commandparser.commands.query;
25 25
 import com.dmdirc.Query;
26 26
 import com.dmdirc.Server;
27 27
 import com.dmdirc.commandparser.CommandManager;
28
-import com.dmdirc.commandparser.CommandWindow;
29 28
 import com.dmdirc.commandparser.QueryCommand;
29
+import com.dmdirc.ui.InputWindow;
30 30
 
31 31
 /**
32 32
  * Represents the /me command used in a query window.
@@ -42,7 +42,7 @@ public final class QueryMe extends QueryCommand {
42 42
     }
43 43
     
44 44
     /** {@inheritDoc}. */
45
-    public void execute(final CommandWindow origin, final Server server,
45
+    public void execute(final InputWindow origin, final Server server,
46 46
             final Query query, final boolean isSilent, final String... args) {
47 47
         query.sendAction(implodeArgs(args));
48 48
     }

+ 2
- 2
src/com/dmdirc/commandparser/commands/query/QueryMeEmpty.java Voir le fichier

@@ -26,8 +26,8 @@ import com.dmdirc.Config;
26 26
 import com.dmdirc.Query;
27 27
 import com.dmdirc.Server;
28 28
 import com.dmdirc.commandparser.CommandManager;
29
-import com.dmdirc.commandparser.CommandWindow;
30 29
 import com.dmdirc.commandparser.QueryCommand;
30
+import com.dmdirc.ui.InputWindow;
31 31
 
32 32
 /**
33 33
  * Represents the /me command used in a query window, with no parameters.
@@ -44,7 +44,7 @@ public final class QueryMeEmpty extends QueryCommand {
44 44
     }
45 45
     
46 46
     /** {@inheritDoc}. */
47
-    public void execute(final CommandWindow origin, final Server server,
47
+    public void execute(final InputWindow origin, final Server server,
48 48
             final Query query, final boolean isSilent, final String... args) {
49 49
         sendLine(origin, isSilent, "commandUsage", Config.getCommandChar(), "me", "<action>");
50 50
     }

+ 3
- 3
src/com/dmdirc/commandparser/commands/server/AllChannels.java Voir le fichier

@@ -24,8 +24,8 @@ package com.dmdirc.commandparser.commands.server;
24 24
 
25 25
 import com.dmdirc.Server;
26 26
 import com.dmdirc.commandparser.CommandManager;
27
-import com.dmdirc.commandparser.CommandWindow;
28 27
 import com.dmdirc.commandparser.ServerCommand;
28
+import com.dmdirc.ui.InputWindow;
29 29
 
30 30
 /**
31 31
  * The AllChannels command allows the user to issue a command to all channels
@@ -48,10 +48,10 @@ public final class AllChannels extends ServerCommand {
48 48
      * @param isSilent Whether this command is silenced or not
49 49
      * @param args The user supplied arguments
50 50
      */
51
-    public void execute(final CommandWindow origin, final Server server,
51
+    public void execute(final InputWindow origin, final Server server,
52 52
             final boolean isSilent, final String... args) {
53 53
         final String command = implodeArgs(args);
54
-        CommandWindow window;
54
+        InputWindow window;
55 55
         
56 56
         for (String channel : server.getChannels()) {
57 57
             window = server.getChannel(channel).getFrame();

+ 2
- 2
src/com/dmdirc/commandparser/commands/server/Away.java Voir le fichier

@@ -24,8 +24,8 @@ package com.dmdirc.commandparser.commands.server;
24 24
 
25 25
 import com.dmdirc.Server;
26 26
 import com.dmdirc.commandparser.CommandManager;
27
-import com.dmdirc.commandparser.CommandWindow;
28 27
 import com.dmdirc.commandparser.ServerCommand;
28
+import com.dmdirc.ui.InputWindow;
29 29
 
30 30
 /**
31 31
  * The away command allows the user to set their away message.
@@ -49,7 +49,7 @@ public final class Away extends ServerCommand {
49 49
      * @param isSilent Whether this command is silenced or not
50 50
      * @param args The user supplied arguments
51 51
      */
52
-    public void execute(final CommandWindow origin, final Server server,
52
+    public void execute(final InputWindow origin, final Server server,
53 53
             final boolean isSilent, final String... args) {
54 54
         final String line = implodeArgs(args);
55 55
         

+ 2
- 2
src/com/dmdirc/commandparser/commands/server/Back.java Voir le fichier

@@ -24,8 +24,8 @@ package com.dmdirc.commandparser.commands.server;
24 24
 
25 25
 import com.dmdirc.Server;
26 26
 import com.dmdirc.commandparser.CommandManager;
27
-import com.dmdirc.commandparser.CommandWindow;
28 27
 import com.dmdirc.commandparser.ServerCommand;
28
+import com.dmdirc.ui.InputWindow;
29 29
 
30 30
 /**
31 31
  * The back command allows the user to unset their away status.
@@ -49,7 +49,7 @@ public final class Back extends ServerCommand {
49 49
      * @param isSilent Whether this command is silenced or not
50 50
      * @param args The user supplied arguments
51 51
      */
52
-    public void execute(final CommandWindow origin, final Server server,
52
+    public void execute(final InputWindow origin, final Server server,
53 53
             final boolean isSilent, final String... args) {
54 54
         //final String line = implodeArgs(args);
55 55
         

+ 2
- 2
src/com/dmdirc/commandparser/commands/server/ChangeServer.java Voir le fichier

@@ -25,8 +25,8 @@ package com.dmdirc.commandparser.commands.server;
25 25
 import com.dmdirc.Config;
26 26
 import com.dmdirc.Server;
27 27
 import com.dmdirc.commandparser.CommandManager;
28
-import com.dmdirc.commandparser.CommandWindow;
29 28
 import com.dmdirc.commandparser.ServerCommand;
29
+import com.dmdirc.ui.InputWindow;
30 30
 
31 31
 /**
32 32
  * The /server command allows the user to connect to a new server.
@@ -44,7 +44,7 @@ public final class ChangeServer extends ServerCommand {
44 44
     }
45 45
     
46 46
     /** {@inheritDoc} */
47
-    public void execute(final CommandWindow origin, final Server server,
47
+    public void execute(final InputWindow origin, final Server server,
48 48
             final boolean isSilent, final String... args) {
49 49
         if (args.length == 0) {
50 50
             sendLine(origin, isSilent, "commandUsage", Config.getCommandChar(), "server",

+ 2
- 2
src/com/dmdirc/commandparser/commands/server/Clear.java Voir le fichier

@@ -24,8 +24,8 @@ package com.dmdirc.commandparser.commands.server;
24 24
 
25 25
 import com.dmdirc.Server;
26 26
 import com.dmdirc.commandparser.CommandManager;
27
-import com.dmdirc.commandparser.CommandWindow;
28 27
 import com.dmdirc.commandparser.ServerCommand;
28
+import com.dmdirc.ui.InputWindow;
29 29
 
30 30
 /**
31 31
  * The clear command clears the main text area of the current window.
@@ -49,7 +49,7 @@ public final class Clear extends ServerCommand {
49 49
      * @param isSilent Whether this command is silenced or not
50 50
      * @param args The user supplied arguments
51 51
      */
52
-    public void execute(final CommandWindow origin, final Server server,
52
+    public void execute(final InputWindow origin, final Server server,
53 53
             final boolean isSilent, final String... args) {
54 54
         origin.clear();
55 55
     }

+ 2
- 2
src/com/dmdirc/commandparser/commands/server/ConfigInfo.java Voir le fichier

@@ -24,9 +24,9 @@ package com.dmdirc.commandparser.commands.server;
24 24
 
25 25
 import com.dmdirc.Server;
26 26
 import com.dmdirc.commandparser.CommandManager;
27
-import com.dmdirc.commandparser.CommandWindow;
28 27
 import com.dmdirc.commandparser.ServerCommand;
29 28
 import com.dmdirc.identities.ConfigSource;
29
+import com.dmdirc.ui.InputWindow;
30 30
 
31 31
 /**
32 32
  * Displays information about the origin's config manager.
@@ -50,7 +50,7 @@ public final class ConfigInfo extends ServerCommand {
50 50
      * @param isSilent Whether this command is silenced or not
51 51
      * @param args The user supplied arguments
52 52
      */
53
-    public void execute(final CommandWindow origin, final Server server,
53
+    public void execute(final InputWindow origin, final Server server,
54 54
             final boolean isSilent, final String... args) {
55 55
         for (ConfigSource source : origin.getConfigManager().getSources()) {
56 56
             sendLine(origin, isSilent, "commandOutput", source.getTarget() + " - " + source);

+ 2
- 2
src/com/dmdirc/commandparser/commands/server/Ctcp.java Voir le fichier

@@ -25,9 +25,9 @@ package com.dmdirc.commandparser.commands.server;
25 25
 import com.dmdirc.Config;
26 26
 import com.dmdirc.Server;
27 27
 import com.dmdirc.commandparser.CommandManager;
28
-import com.dmdirc.commandparser.CommandWindow;
29 28
 import com.dmdirc.commandparser.IntelligentCommand;
30 29
 import com.dmdirc.commandparser.ServerCommand;
30
+import com.dmdirc.ui.InputWindow;
31 31
 import java.util.ArrayList;
32 32
 import java.util.List;
33 33
 
@@ -53,7 +53,7 @@ public final class Ctcp extends ServerCommand implements IntelligentCommand {
53 53
      * @param isSilent Whether this command is silenced or not
54 54
      * @param args The user supplied arguments
55 55
      */
56
-    public void execute(final CommandWindow origin, final Server server,
56
+    public void execute(final InputWindow origin, final Server server,
57 57
             final boolean isSilent, final String... args) {
58 58
         if (args.length < 2) {
59 59
             sendLine(origin, isSilent, "CommandUsage", Config.getCommandChar(),

+ 2
- 2
src/com/dmdirc/commandparser/commands/server/Disconnect.java Voir le fichier

@@ -24,8 +24,8 @@ package com.dmdirc.commandparser.commands.server;
24 24
 
25 25
 import com.dmdirc.Server;
26 26
 import com.dmdirc.commandparser.CommandManager;
27
-import com.dmdirc.commandparser.CommandWindow;
28 27
 import com.dmdirc.commandparser.ServerCommand;
28
+import com.dmdirc.ui.InputWindow;
29 29
 
30 30
 /**
31 31
  * The disconnect command disconnects from the current server.
@@ -49,7 +49,7 @@ public final class Disconnect extends ServerCommand {
49 49
      * @param isSilent Whether this command is silenced or not
50 50
      * @param args The user supplied arguments
51 51
      */
52
-    public void execute(final CommandWindow origin, final Server server,
52
+    public void execute(final InputWindow origin, final Server server,
53 53
             final boolean isSilent, final String... args) {
54 54
         String line;
55 55
         

+ 4
- 4
src/com/dmdirc/commandparser/commands/server/Echo.java Voir le fichier

@@ -24,8 +24,8 @@ package com.dmdirc.commandparser.commands.server;
24 24
 
25 25
 import com.dmdirc.Server;
26 26
 import com.dmdirc.commandparser.CommandManager;
27
-import com.dmdirc.commandparser.CommandWindow;
28 27
 import com.dmdirc.commandparser.ServerCommand;
28
+import com.dmdirc.ui.InputWindow;
29 29
 import com.dmdirc.ui.MainFrame;
30 30
 
31 31
 import javax.swing.JInternalFrame;
@@ -52,12 +52,12 @@ public final class Echo extends ServerCommand {
52 52
      * @param isSilent Whether this command is silenced or not
53 53
      * @param args The user supplied arguments
54 54
      */
55
-    public void execute(final CommandWindow origin, final Server server,
55
+    public void execute(final InputWindow origin, final Server server,
56 56
             final boolean isSilent, final String... args) {        
57 57
         if (args.length > 0 && args[0].equalsIgnoreCase("--active")) {
58 58
             final JInternalFrame frame = MainFrame.getMainFrame().getActiveFrame();
59
-            if (frame instanceof CommandWindow) {
60
-                ((CommandWindow) frame).addLine("commandOutput", implodeArgs(1, args));
59
+            if (frame instanceof InputWindow) {
60
+                ((InputWindow) frame).addLine("commandOutput", implodeArgs(1, args));
61 61
             }
62 62
         } else {
63 63
             sendLine(origin, isSilent, "commandOutput", implodeArgs(args));

+ 3
- 3
src/com/dmdirc/commandparser/commands/server/Help.java Voir le fichier

@@ -25,9 +25,9 @@ package com.dmdirc.commandparser.commands.server;
25 25
 import com.dmdirc.Server;
26 26
 import com.dmdirc.commandparser.Command;
27 27
 import com.dmdirc.commandparser.CommandManager;
28
-import com.dmdirc.commandparser.CommandWindow;
29 28
 import com.dmdirc.commandparser.ServerCommand;
30 29
 import com.dmdirc.ui.ChannelFrame;
30
+import com.dmdirc.ui.InputWindow;
31 31
 import com.dmdirc.ui.QueryFrame;
32 32
 
33 33
 import java.util.Collections;
@@ -57,7 +57,7 @@ public final class Help extends ServerCommand {
57 57
      * @param isSilent Whether this command is silenced or not
58 58
      * @param args The user supplied arguments
59 59
      */
60
-    public void execute(final CommandWindow origin, final Server server,
60
+    public void execute(final InputWindow origin, final Server server,
61 61
             final boolean isSilent, final String... args) {
62 62
         sendLine(origin, isSilent, "commandOutput", "-- Server commands ----------------------------------");
63 63
         showCommands(CommandManager.getServerCommands(), origin, isSilent);
@@ -80,7 +80,7 @@ public final class Help extends ServerCommand {
80 80
      * @param isSilent Whether this command is silent or not
81 81
      */
82 82
     private void showCommands(final List<Command> commands,
83
-            final CommandWindow origin, final boolean isSilent) {
83
+            final InputWindow origin, final boolean isSilent) {
84 84
         Collections.sort(commands);
85 85
         for (Command com : commands) {
86 86
             if (com.showInHelp()) {

+ 2
- 2
src/com/dmdirc/commandparser/commands/server/Ignore.java Voir le fichier

@@ -25,10 +25,10 @@ package com.dmdirc.commandparser.commands.server;
25 25
 import com.dmdirc.Config;
26 26
 import com.dmdirc.Server;
27 27
 import com.dmdirc.commandparser.CommandManager;
28
-import com.dmdirc.commandparser.CommandWindow;
29 28
 import com.dmdirc.commandparser.ServerCommand;
30 29
 import com.dmdirc.identities.Identity;
31 30
 import com.dmdirc.identities.IdentityManager;
31
+import com.dmdirc.ui.InputWindow;
32 32
 
33 33
 /**
34 34
  * Allows the user to add/view/delete ignores.
@@ -52,7 +52,7 @@ public final class Ignore extends ServerCommand {
52 52
      * @param isSilent Whether this command is silenced or not
53 53
      * @param args The user supplied arguments
54 54
      */
55
-    public void execute(final CommandWindow origin, final Server server,
55
+    public void execute(final InputWindow origin, final Server server,
56 56
             final boolean isSilent, final String... args) {
57 57
         
58 58
         final Identity identity = IdentityManager.getNetworkConfig(server.getNetwork());

+ 2
- 2
src/com/dmdirc/commandparser/commands/server/Join.java Voir le fichier

@@ -24,8 +24,8 @@ package com.dmdirc.commandparser.commands.server;
24 24
 
25 25
 import com.dmdirc.Server;
26 26
 import com.dmdirc.commandparser.CommandManager;
27
-import com.dmdirc.commandparser.CommandWindow;
28 27
 import com.dmdirc.commandparser.ServerCommand;
28
+import com.dmdirc.ui.InputWindow;
29 29
 
30 30
 /**
31 31
  * The join command allows users to join a channel, or a comma-seperated list
@@ -50,7 +50,7 @@ public final class Join extends ServerCommand {
50 50
      * @param isSilent Whether this command is silenced or not
51 51
      * @param args The user supplied arguments
52 52
      */
53
-    public void execute(final CommandWindow origin, final Server server,
53
+    public void execute(final InputWindow origin, final Server server,
54 54
             final boolean isSilent, final String... args) {
55 55
         server.getParser().joinChannel(args[0]);
56 56
     }

+ 2
- 2
src/com/dmdirc/commandparser/commands/server/Message.java Voir le fichier

@@ -25,8 +25,8 @@ package com.dmdirc.commandparser.commands.server;
25 25
 import com.dmdirc.Config;
26 26
 import com.dmdirc.Server;
27 27
 import com.dmdirc.commandparser.CommandManager;
28
-import com.dmdirc.commandparser.CommandWindow;
29 28
 import com.dmdirc.commandparser.ServerCommand;
29
+import com.dmdirc.ui.InputWindow;
30 30
 
31 31
 /**
32 32
  * Allows the user to send privmsgs.
@@ -50,7 +50,7 @@ public final class Message extends ServerCommand {
50 50
      * @param isSilent Whether this command is silenced or not
51 51
      * @param args The user supplied arguments
52 52
      */
53
-    public void execute(final CommandWindow origin, final Server server,
53
+    public void execute(final InputWindow origin, final Server server,
54 54
             final boolean isSilent, final String... args) {
55 55
         if (args.length < 2) {
56 56
             sendLine(origin, isSilent, "commandUsage", Config.getCommandChar(), "msg",

+ 2
- 2
src/com/dmdirc/commandparser/commands/server/Motd.java Voir le fichier

@@ -24,8 +24,8 @@ package com.dmdirc.commandparser.commands.server;
24 24
 
25 25
 import com.dmdirc.Server;
26 26
 import com.dmdirc.commandparser.CommandManager;
27
-import com.dmdirc.commandparser.CommandWindow;
28 27
 import com.dmdirc.commandparser.ServerCommand;
28
+import com.dmdirc.ui.InputWindow;
29 29
 
30 30
 /**
31 31
  * The MOTD command allows the user to retrieve the MOTD for the server.
@@ -49,7 +49,7 @@ public final class Motd extends ServerCommand {
49 49
      * @param isSilent Whether this command is silenced or not
50 50
      * @param args The user supplied arguments
51 51
      */
52
-    public void execute(final CommandWindow origin, final Server server,
52
+    public void execute(final InputWindow origin, final Server server,
53 53
             final boolean isSilent, final String... args) {
54 54
         //final String line = implodeArgs(args);
55 55
         

+ 2
- 2
src/com/dmdirc/commandparser/commands/server/Nick.java Voir le fichier

@@ -24,8 +24,8 @@ package com.dmdirc.commandparser.commands.server;
24 24
 
25 25
 import com.dmdirc.Server;
26 26
 import com.dmdirc.commandparser.CommandManager;
27
-import com.dmdirc.commandparser.CommandWindow;
28 27
 import com.dmdirc.commandparser.ServerCommand;
28
+import com.dmdirc.ui.InputWindow;
29 29
 
30 30
 /**
31 31
  * Allows the user to change nickname.
@@ -49,7 +49,7 @@ public final class Nick extends ServerCommand {
49 49
      * @param isSilent Whether this command is silenced or not
50 50
      * @param args The user supplied arguments
51 51
      */
52
-    public void execute(final CommandWindow origin, final Server server,
52
+    public void execute(final InputWindow origin, final Server server,
53 53
             final boolean isSilent, final String... args) {
54 54
         server.getParser().setNickname(args[0]);
55 55
     }

+ 2
- 2
src/com/dmdirc/commandparser/commands/server/Notice.java Voir le fichier

@@ -25,8 +25,8 @@ package com.dmdirc.commandparser.commands.server;
25 25
 import com.dmdirc.Config;
26 26
 import com.dmdirc.Server;
27 27
 import com.dmdirc.commandparser.CommandManager;
28
-import com.dmdirc.commandparser.CommandWindow;
29 28
 import com.dmdirc.commandparser.ServerCommand;
29
+import com.dmdirc.ui.InputWindow;
30 30
 
31 31
 /**
32 32
  * Allows the user to send notices.
@@ -50,7 +50,7 @@ public final class Notice extends ServerCommand {
50 50
      * @param isSilent Whether this command is silenced or not
51 51
      * @param args The user supplied arguments
52 52
      */
53
-    public void execute(final CommandWindow origin, final Server server,
53
+    public void execute(final InputWindow origin, final Server server,
54 54
             final boolean isSilent, final String... args) {
55 55
         if (args.length < 2) {
56 56
             sendLine(origin, isSilent, "commandUsage", Config.getCommandChar(), "notice",

+ 2
- 2
src/com/dmdirc/commandparser/commands/server/Query.java Voir le fichier

@@ -24,8 +24,8 @@ package com.dmdirc.commandparser.commands.server;
24 24
 
25 25
 import com.dmdirc.Server;
26 26
 import com.dmdirc.commandparser.CommandManager;
27
-import com.dmdirc.commandparser.CommandWindow;
28 27
 import com.dmdirc.commandparser.ServerCommand;
28
+import com.dmdirc.ui.InputWindow;
29 29
 
30 30
 /**
31 31
  * Allows the user to open a query dialog with another user.
@@ -44,7 +44,7 @@ public final class Query extends ServerCommand {
44 44
     }
45 45
     
46 46
     /** {@inheritDoc} */
47
-    public void execute(final CommandWindow origin, final Server server,
47
+    public void execute(final InputWindow origin, final Server server,
48 48
             final boolean isSilent, final String... args) {
49 49
         server.addQuery(args[0]);
50 50
         server.getQuery(args[0]).show();

+ 2
- 2
src/com/dmdirc/commandparser/commands/server/Raw.java Voir le fichier

@@ -24,8 +24,8 @@ package com.dmdirc.commandparser.commands.server;
24 24
 
25 25
 import com.dmdirc.Server;
26 26
 import com.dmdirc.commandparser.CommandManager;
27
-import com.dmdirc.commandparser.CommandWindow;
28 27
 import com.dmdirc.commandparser.ServerCommand;
28
+import com.dmdirc.ui.InputWindow;
29 29
 
30 30
 /**
31 31
  * The raw command allows the user to send a raw line of text directly to the
@@ -50,7 +50,7 @@ public final class Raw extends ServerCommand {
50 50
      * @param isSilent Whether this command is silenced or not
51 51
      * @param args The user supplied arguments
52 52
      */
53
-    public void execute(final CommandWindow origin, final Server server,
53
+    public void execute(final InputWindow origin, final Server server,
54 54
             final boolean isSilent, final String... args) {
55 55
         final String line = implodeArgs(args);
56 56
         

+ 2
- 2
src/com/dmdirc/commandparser/commands/server/Reconnect.java Voir le fichier

@@ -24,8 +24,8 @@ package com.dmdirc.commandparser.commands.server;
24 24
 
25 25
 import com.dmdirc.Server;
26 26
 import com.dmdirc.commandparser.CommandManager;
27
-import com.dmdirc.commandparser.CommandWindow;
28 27
 import com.dmdirc.commandparser.ServerCommand;
28
+import com.dmdirc.ui.InputWindow;
29 29
 
30 30
 /**
31 31
  * The reconnect command reconnects to the current server.
@@ -49,7 +49,7 @@ public final class Reconnect extends ServerCommand {
49 49
      * @param isSilent Whether this command is silenced or not
50 50
      * @param args The user supplied arguments
51 51
      */
52
-    public void execute(final CommandWindow origin, final Server server,
52
+    public void execute(final InputWindow origin, final Server server,
53 53
             final boolean isSilent, final String... args) {
54 54
         String line;
55 55
         

+ 2
- 2
src/com/dmdirc/commandparser/commands/server/Whois.java Voir le fichier

@@ -24,8 +24,8 @@ package com.dmdirc.commandparser.commands.server;
24 24
 
25 25
 import com.dmdirc.Server;
26 26
 import com.dmdirc.commandparser.CommandManager;
27
-import com.dmdirc.commandparser.CommandWindow;
28 27
 import com.dmdirc.commandparser.ServerCommand;
28
+import com.dmdirc.ui.InputWindow;
29 29
 
30 30
 /**
31 31
  * The whois command requests information about another user.
@@ -50,7 +50,7 @@ public final class Whois extends ServerCommand {
50 50
      * @param isSilent Whether this command is silenced or not
51 51
      * @param args The user supplied arguments
52 52
      */
53
-    public void execute(final CommandWindow origin, final Server server,
53
+    public void execute(final InputWindow origin, final Server server,
54 54
             final boolean isSilent, final String... args) {
55 55
         server.getParser().sendLine("WHOIS :" + args[0]);
56 56
     }

Chargement…
Annuler
Enregistrer