Search in sources :

Example 6 with IChatRoomContainer

use of org.eclipse.ecf.presence.chatroom.IChatRoomContainer in project ecf by eclipse.

the class IRCChannelHyperlink method open.

public void open() {
    IChatRoomContainer container = view.getRootChatRoomContainer();
    final IChatRoomManager manager = (IChatRoomManager) container.getAdapter(IChatRoomManager.class);
    view.joinRoom(manager.getChatRoomInfo(channel), "");
}
Also used : IChatRoomContainer(org.eclipse.ecf.presence.chatroom.IChatRoomContainer) IChatRoomManager(org.eclipse.ecf.presence.chatroom.IChatRoomManager)

Example 7 with IChatRoomContainer

use of org.eclipse.ecf.presence.chatroom.IChatRoomContainer in project ecf by eclipse.

the class XMPPChatRoomManager method disposeChatRooms.

protected void disposeChatRooms() {
    List toNotify = null;
    synchronized (chatrooms) {
        toNotify = new ArrayList(chatrooms);
        chatrooms.clear();
    }
    for (final Iterator i = toNotify.iterator(); i.hasNext(); ) {
        final IChatRoomContainer cc = (IChatRoomContainer) i.next();
        cc.dispose();
    }
}
Also used : IChatRoomContainer(org.eclipse.ecf.presence.chatroom.IChatRoomContainer) ArrayList(java.util.ArrayList) Iterator(java.util.Iterator) ArrayList(java.util.ArrayList) List(java.util.List)

Aggregations

IChatRoomContainer (org.eclipse.ecf.presence.chatroom.IChatRoomContainer)7 ArrayList (java.util.ArrayList)2 Iterator (java.util.Iterator)2 List (java.util.List)2 ID (org.eclipse.ecf.core.identity.ID)2 IChatRoomInfo (org.eclipse.ecf.presence.chatroom.IChatRoomInfo)2 File (java.io.File)1 FileInputStream (java.io.FileInputStream)1 FileNotFoundException (java.io.FileNotFoundException)1 IOException (java.io.IOException)1 Properties (java.util.Properties)1 XMPPChatRoomClient (org.eclipse.ecf.example.clients.XMPPChatRoomClient)1 IIMMessageEvent (org.eclipse.ecf.presence.IIMMessageEvent)1 IIMMessageListener (org.eclipse.ecf.presence.IIMMessageListener)1 IChatRoomInvitationSender (org.eclipse.ecf.presence.chatroom.IChatRoomInvitationSender)1 IChatRoomManager (org.eclipse.ecf.presence.chatroom.IChatRoomManager)1 IChatMessageEvent (org.eclipse.ecf.presence.im.IChatMessageEvent)1 XMPPID (org.eclipse.ecf.provider.xmpp.identity.XMPPID)1 XMPPRoomID (org.eclipse.ecf.provider.xmpp.identity.XMPPRoomID)1