Browse Source

Use events for raw data in/out.

Issue DMDirc/DMDirc#426
pull/448/head
Chris Smith 8 years ago
parent
commit
7372a69bc1

+ 4
- 2
debug/src/com/dmdirc/addons/debug/RawWindow.java View File

@@ -24,6 +24,8 @@ package com.dmdirc.addons.debug;
24 24
 
25 25
 import com.dmdirc.FrameContainer;
26 26
 import com.dmdirc.commandparser.CommandType;
27
+import com.dmdirc.events.RawDataInEvent;
28
+import com.dmdirc.events.RawDataOutEvent;
27 29
 import com.dmdirc.events.ServerConnectingEvent;
28 30
 import com.dmdirc.interfaces.Connection;
29 31
 import com.dmdirc.parser.events.DataInEvent;
@@ -89,12 +91,12 @@ public class RawWindow extends FrameContainer {
89 91
 
90 92
     @Handler
91 93
     private void handleDataIn(final DataInEvent event) {
92
-        addLine("rawIn", event.getDate(), event.getData());
94
+        getEventBus().publishAsync(new RawDataInEvent(this, event.getData()));
93 95
     }
94 96
 
95 97
     @Handler
96 98
     private void handleDataOut(final DataOutEvent event) {
97
-        addLine("rawOut", event.getDate(), event.getData());
99
+        getEventBus().publishAsync(new RawDataOutEvent(this, event.getData()));
98 100
     }
99 101
 
100 102
 }

+ 0
- 6
redirect/src/com/dmdirc/addons/redirect/FakeWriteableFrameContainer.java View File

@@ -61,12 +61,6 @@ public class FakeWriteableFrameContainer extends FrameContainer {
61 61
         target.sendLine(line);
62 62
     }
63 63
 
64
-    @Override
65
-    @Deprecated
66
-    public void addLine(final String type, final Date timestamp, final Object... args) {
67
-        addLine(type, args);
68
-    }
69
-
70 64
     @Override
71 65
     @Deprecated
72 66
     public void addLine(final String type, final Object... args) {

Loading…
Cancel
Save