Browse Source

Support for core event renaming.

pull/247/head
Chris Smith 9 years ago
parent
commit
fe26f8a87c

+ 6
- 6
lagdisplay/src/com/dmdirc/addons/lagdisplay/LagDisplayManager.java View File

32
 import com.dmdirc.addons.ui_swing.events.SwingWindowSelectedEvent;
32
 import com.dmdirc.addons.ui_swing.events.SwingWindowSelectedEvent;
33
 import com.dmdirc.addons.ui_swing.interfaces.ActiveFrameManager;
33
 import com.dmdirc.addons.ui_swing.interfaces.ActiveFrameManager;
34
 import com.dmdirc.events.ServerDisconnectedEvent;
34
 import com.dmdirc.events.ServerDisconnectedEvent;
35
-import com.dmdirc.events.ServerGotpingEvent;
36
-import com.dmdirc.events.ServerNopingEvent;
35
+import com.dmdirc.events.ServerGotPingEvent;
36
+import com.dmdirc.events.ServerNoPingEvent;
37
 import com.dmdirc.events.ServerNumericEvent;
37
 import com.dmdirc.events.ServerNumericEvent;
38
-import com.dmdirc.events.ServerPingsentEvent;
38
+import com.dmdirc.events.ServerPingSentEvent;
39
 import com.dmdirc.events.StatusBarComponentAddedEvent;
39
 import com.dmdirc.events.StatusBarComponentAddedEvent;
40
 import com.dmdirc.events.StatusBarComponentRemovedEvent;
40
 import com.dmdirc.events.StatusBarComponentRemovedEvent;
41
 import com.dmdirc.interfaces.Connection;
41
 import com.dmdirc.interfaces.Connection;
215
     }
215
     }
216
 
216
 
217
     @Handler
217
     @Handler
218
-    public void handleServerGotPing(final ServerGotpingEvent event) {
218
+    public void handleServerGotPing(final ServerGotPingEvent event) {
219
         if (event.getConnection().getWindowModel().getConfigManager().
219
         if (event.getConnection().getWindowModel().getConfigManager().
220
                 getOptionBool(domain, "usealternate")) {
220
                 getOptionBool(domain, "usealternate")) {
221
             return;
221
             return;
234
     }
234
     }
235
 
235
 
236
     @Handler
236
     @Handler
237
-    public void handleServerNoPing(final ServerNopingEvent event) {
237
+    public void handleServerNoPing(final ServerNoPingEvent event) {
238
         if (event.getConnection().getWindowModel().getConfigManager().
238
         if (event.getConnection().getWindowModel().getConfigManager().
239
                 getOptionBool(domain, "usealternate")) {
239
                 getOptionBool(domain, "usealternate")) {
240
             return;
240
             return;
252
     }
252
     }
253
 
253
 
254
     @Handler
254
     @Handler
255
-    public void handleServerPingSent(final ServerPingsentEvent event) {
255
+    public void handleServerPingSent(final ServerPingSentEvent event) {
256
         if (!event.getConnection().getWindowModel().getConfigManager().
256
         if (!event.getConnection().getWindowModel().getConfigManager().
257
                 getOptionBool(domain, "usealternate")) {
257
                 getOptionBool(domain, "usealternate")) {
258
             return;
258
             return;

+ 6
- 6
logging/src/com/dmdirc/addons/logging/LoggingManager.java View File

33
 import com.dmdirc.events.BaseQueryActionEvent;
33
 import com.dmdirc.events.BaseQueryActionEvent;
34
 import com.dmdirc.events.BaseQueryMessageEvent;
34
 import com.dmdirc.events.BaseQueryMessageEvent;
35
 import com.dmdirc.events.ChannelClosedEvent;
35
 import com.dmdirc.events.ChannelClosedEvent;
36
-import com.dmdirc.events.ChannelGottopicEvent;
36
+import com.dmdirc.events.ChannelGotTopicEvent;
37
 import com.dmdirc.events.ChannelJoinEvent;
37
 import com.dmdirc.events.ChannelJoinEvent;
38
 import com.dmdirc.events.ChannelKickEvent;
38
 import com.dmdirc.events.ChannelKickEvent;
39
-import com.dmdirc.events.ChannelModechangeEvent;
40
-import com.dmdirc.events.ChannelNickchangeEvent;
39
+import com.dmdirc.events.ChannelModeChangeEvent;
40
+import com.dmdirc.events.ChannelNickChangeEvent;
41
 import com.dmdirc.events.ChannelOpenedEvent;
41
 import com.dmdirc.events.ChannelOpenedEvent;
42
 import com.dmdirc.events.ChannelPartEvent;
42
 import com.dmdirc.events.ChannelPartEvent;
43
 import com.dmdirc.events.ChannelQuitEvent;
43
 import com.dmdirc.events.ChannelQuitEvent;
264
     }
264
     }
265
 
265
 
266
     @Handler
266
     @Handler
267
-    public void handleChannelGotTopic(final ChannelGottopicEvent event) {
267
+    public void handleChannelGotTopic(final ChannelGotTopicEvent event) {
268
         final String filename = locator.getLogFile(event.getChannel().getChannelInfo());
268
         final String filename = locator.getLogFile(event.getChannel().getChannelInfo());
269
         final DateFormat timeFormat = new SimpleDateFormat("HH:mm:ss");
269
         final DateFormat timeFormat = new SimpleDateFormat("HH:mm:ss");
270
         final DateFormat dateFormat = new SimpleDateFormat("dd/MM/yyyy");
270
         final DateFormat dateFormat = new SimpleDateFormat("dd/MM/yyyy");
337
     }
337
     }
338
 
338
 
339
     @Handler
339
     @Handler
340
-    public void handleNickChange(final ChannelNickchangeEvent event) {
340
+    public void handleNickChange(final ChannelNickChangeEvent event) {
341
         final String filename = locator.getLogFile(event.getChannel().getChannelInfo());
341
         final String filename = locator.getLogFile(event.getChannel().getChannelInfo());
342
         appendLine(filename, "*** %s is now %s", getDisplayName(event.getClient(),
342
         appendLine(filename, "*** %s is now %s", getDisplayName(event.getClient(),
343
                 event.getOldNick()), getDisplayName(event.getClient()));
343
                 event.getOldNick()), getDisplayName(event.getClient()));
344
     }
344
     }
345
 
345
 
346
     @Handler
346
     @Handler
347
-    public void handleModeChange(final ChannelModechangeEvent event) {
347
+    public void handleModeChange(final ChannelModeChangeEvent event) {
348
         final String filename = locator.getLogFile(event.getChannel().getChannelInfo());
348
         final String filename = locator.getLogFile(event.getChannel().getChannelInfo());
349
         if (event.getClient().getNickname().isEmpty()) {
349
         if (event.getClient().getNickname().isEmpty()) {
350
             appendLine(filename, "*** Channel modes are: %s", event.getModes());
350
             appendLine(filename, "*** Channel modes are: %s", event.getModes());

+ 2
- 2
nickcolours/src/com/dmdirc/addons/nickcolours/NickColourManager.java View File

27
 import com.dmdirc.addons.ui_swing.EDTInvocation;
27
 import com.dmdirc.addons.ui_swing.EDTInvocation;
28
 import com.dmdirc.config.ConfigBinder;
28
 import com.dmdirc.config.ConfigBinder;
29
 import com.dmdirc.config.ConfigBinding;
29
 import com.dmdirc.config.ConfigBinding;
30
-import com.dmdirc.events.ChannelGotnamesEvent;
30
+import com.dmdirc.events.ChannelGotNamesEvent;
31
 import com.dmdirc.events.ChannelJoinEvent;
31
 import com.dmdirc.events.ChannelJoinEvent;
32
 import com.dmdirc.events.DisplayProperty;
32
 import com.dmdirc.events.DisplayProperty;
33
 import com.dmdirc.interfaces.GroupChatUser;
33
 import com.dmdirc.interfaces.GroupChatUser;
84
     }
84
     }
85
 
85
 
86
     @Handler
86
     @Handler
87
-    public void handleChannelNames(final ChannelGotnamesEvent event) {
87
+    public void handleChannelNames(final ChannelGotNamesEvent event) {
88
         final String network = event.getChannel().getConnection().get().getNetwork();
88
         final String network = event.getChannel().getConnection().get().getNetwork();
89
         event.getChannel().getUsers().forEach(client -> colourClient(network, client));
89
         event.getChannel().getUsers().forEach(client -> colourClient(network, client));
90
     }
90
     }

Loading…
Cancel
Save