Procházet zdrojové kódy

Merge pull request #550 from csmith/master

Make QueryCommandParsers use PrivateChat.
pull/552/head
Greg Holmes před 9 roky
rodič
revize
6764c63250

+ 4
- 4
src/com/dmdirc/commandparser/commands/context/QueryCommandContext.java Zobrazit soubor

@@ -22,8 +22,8 @@
22 22
 
23 23
 package com.dmdirc.commandparser.commands.context;
24 24
 
25
-import com.dmdirc.Query;
26 25
 import com.dmdirc.commandparser.CommandInfo;
26
+import com.dmdirc.interfaces.PrivateChat;
27 27
 import com.dmdirc.interfaces.WindowModel;
28 28
 
29 29
 /**
@@ -34,7 +34,7 @@ import com.dmdirc.interfaces.WindowModel;
34 34
 public class QueryCommandContext extends ChatCommandContext {
35 35
 
36 36
     /** The query the command was executed for. */
37
-    private final Query query;
37
+    private final PrivateChat query;
38 38
 
39 39
     /**
40 40
      * Creates a new query command context.
@@ -44,7 +44,7 @@ public class QueryCommandContext extends ChatCommandContext {
44 44
      * @param query       The query associated with the command
45 45
      */
46 46
     public QueryCommandContext(final WindowModel source,
47
-            final CommandInfo commandInfo, final Query query) {
47
+            final CommandInfo commandInfo, final PrivateChat query) {
48 48
         super(source, commandInfo, query);
49 49
         this.query = query;
50 50
     }
@@ -54,7 +54,7 @@ public class QueryCommandContext extends ChatCommandContext {
54 54
      *
55 55
      * @return This context's query
56 56
      */
57
-    public Query getQuery() {
57
+    public PrivateChat getQuery() {
58 58
         return query;
59 59
     }
60 60
 

+ 3
- 2
src/com/dmdirc/commandparser/parsers/QueryCommandParser.java Zobrazit soubor

@@ -31,6 +31,7 @@ import com.dmdirc.commandparser.commands.Command;
31 31
 import com.dmdirc.commandparser.commands.context.CommandContext;
32 32
 import com.dmdirc.commandparser.commands.context.QueryCommandContext;
33 33
 import com.dmdirc.interfaces.CommandController;
34
+import com.dmdirc.interfaces.PrivateChat;
34 35
 import com.dmdirc.interfaces.WindowModel;
35 36
 
36 37
 import javax.annotation.Nonnull;
@@ -46,7 +47,7 @@ public class QueryCommandParser extends ChatCommandParser {
46 47
     /**
47 48
      * The query instance that this parser is attached to.
48 49
      */
49
-    private final Query query;
50
+    private final PrivateChat query;
50 51
 
51 52
     /**
52 53
      * Creates a new instance of QueryCommandParser.
@@ -56,7 +57,7 @@ public class QueryCommandParser extends ChatCommandParser {
56 57
      * @param eventBus          Event bus to post events on
57 58
      */
58 59
     public QueryCommandParser(final WindowModel owner, final CommandController commandController,
59
-            final DMDircMBassador eventBus, final Query query) {
60
+            final DMDircMBassador eventBus, final PrivateChat query) {
60 61
         super(owner, commandController, eventBus, query);
61 62
         this.query = query;
62 63
     }

Načítá se…
Zrušit
Uložit