Search in sources :

Example 1 with ChatMessageEvent

use of org.eclipse.ecf.presence.im.ChatMessageEvent in project ecf by eclipse.

the class IRCAbstractContainer method fireChatMessageEvent.

public void fireChatMessageEvent(ID sender, String msg) {
    for (Iterator i = msgListeners.iterator(); i.hasNext(); ) {
        IIMMessageListener l = (IIMMessageListener) i.next();
        l.handleMessageEvent(new ChatMessageEvent(sender, new ChatMessage(sender, msg)));
    }
}
Also used : IIMMessageListener(org.eclipse.ecf.presence.IIMMessageListener) ChatMessageEvent(org.eclipse.ecf.presence.im.ChatMessageEvent) ChatMessage(org.eclipse.ecf.presence.im.ChatMessage)

Aggregations

IIMMessageListener (org.eclipse.ecf.presence.IIMMessageListener)1 ChatMessage (org.eclipse.ecf.presence.im.ChatMessage)1 ChatMessageEvent (org.eclipse.ecf.presence.im.ChatMessageEvent)1