Search in sources :

Example 1 with ClientMessageContext

use of com.biglybt.core.messenger.ClientMessageContext in project BiglyBT by BiglySoftware.

the class Initializer method initializePlatformClientMessageContext.

/**
 * @since 3.0.5.3
 */
private void initializePlatformClientMessageContext() {
    ClientMessageContext clientMsgContext = PlatformMessenger.getClientMessageContext();
    if (clientMsgContext != null) {
        clientMsgContext.setMessageDispatcher(new MessageDispatcherSWT(clientMsgContext));
        clientMsgContext.addMessageListener(new TorrentListener());
        clientMsgContext.addMessageListener(new VuzeListener());
        clientMsgContext.addMessageListener(new DisplayListener());
        clientMsgContext.addMessageListener(new ConfigListener(null));
    }
}
Also used : ClientMessageContext(com.biglybt.core.messenger.ClientMessageContext) TorrentListener(com.biglybt.ui.swt.browser.listener.TorrentListener) VuzeListener(com.biglybt.ui.swt.browser.listener.VuzeListener) DisplayListener(com.biglybt.ui.swt.browser.listener.DisplayListener) ConfigListener(com.biglybt.ui.swt.browser.listener.ConfigListener) MessageDispatcherSWT(com.biglybt.ui.swt.browser.msg.MessageDispatcherSWT)

Aggregations

ClientMessageContext (com.biglybt.core.messenger.ClientMessageContext)1 ConfigListener (com.biglybt.ui.swt.browser.listener.ConfigListener)1 DisplayListener (com.biglybt.ui.swt.browser.listener.DisplayListener)1 TorrentListener (com.biglybt.ui.swt.browser.listener.TorrentListener)1 VuzeListener (com.biglybt.ui.swt.browser.listener.VuzeListener)1 MessageDispatcherSWT (com.biglybt.ui.swt.browser.msg.MessageDispatcherSWT)1