|
@@ -24,6 +24,7 @@ package com.dmdirc.addons.ui_swing;
|
24
|
24
|
|
25
|
25
|
import java.lang.reflect.Method;
|
26
|
26
|
|
|
27
|
+import net.engio.mbassy.bus.MessagePublication;
|
27
|
28
|
import net.engio.mbassy.dispatch.ReflectiveHandlerInvocation;
|
28
|
29
|
import net.engio.mbassy.subscription.SubscriptionContext;
|
29
|
30
|
|
|
@@ -48,9 +49,9 @@ public class EdtHandlerInvocation extends ReflectiveHandlerInvocation {
|
48
|
49
|
}
|
49
|
50
|
|
50
|
51
|
@Override
|
51
|
|
- protected void invokeHandler(final Object message, final Object listener,
|
52
|
|
- final Method handler) {
|
|
52
|
+ public void invoke(final Object listener, final Object message,
|
|
53
|
+ final MessagePublication publication) {
|
53
|
54
|
UIUtilities.invokeAndWait(
|
54
|
|
- () -> EdtHandlerInvocation.super.invokeHandler(message, listener, handler));
|
|
55
|
+ () -> EdtHandlerInvocation.super.invoke(listener, message, publication));
|
55
|
56
|
}
|
56
|
57
|
}
|