Examples of IChatRoomManager


Examples of org.eclipse.ecf.presence.chatroom.IChatRoomManager

        throw new ContainerConnectException("Already connected"); //$NON-NLS-1$

      targetID = IDFactory.getDefault().createID(namespace,
          bot.getConnectID());

      IChatRoomManager manager = (IChatRoomManager) container
          .getAdapter(IChatRoomManager.class);

      if (manager == null)
        throw new ECFException("No chat room manager available"); //$NON-NLS-1$

      firePreConnect();

      String password = bot.getPassword();
      IConnectContext context = (password == null) ? null
          : ConnectContextFactory
              .createPasswordConnectContext(password);

      container.connect(targetID, context);

      String[] roomNames = bot.getChatRooms();
      String[] roomPasswords = bot.getChatRoomPasswords();
      for (int i = 0; i < roomNames.length; i++) {
        IChatRoomInfo room = manager.getChatRoomInfo(roomNames[i]);
        roomContainer = room.createChatRoomContainer();

        roomID = room.getRoomID();

        firePreRoomConnect();
View Full Code Here

Examples of org.eclipse.ecf.presence.chatroom.IChatRoomManager

   */
  protected void setUp() throws Exception {
    super.setUp();
    setClientCount(2);
    clients = createClients();
    IChatRoomManager chat0, chat1;
    chat0 = getPresenceAdapter(0).getChatRoomManager();
    chat1 = getPresenceAdapter(1).getChatRoomManager();
    for (int i = 0; i < getClientCount(); i++) {
      connectClient(i);
    }
    final IChatRoomInfo roomInfo0 = chat0.getChatRoomInfo(CHAT_ROOM_NAME);
    if (roomInfo0 == null) return;
    chatRoomContainer0 = roomInfo0.createChatRoomContainer();
    chatRoomContainer0.addChatRoomParticipantListener(participantListener0);
    chatRoomContainer0.connect(roomInfo0.getRoomID(), null);
    final IChatRoomInfo roomInfo1 = chat1.getChatRoomInfo(CHAT_ROOM_NAME);
View Full Code Here

Examples of org.eclipse.ecf.presence.chatroom.IChatRoomManager

  }

  public void testGetChatRoomManager() {
    final IPresenceContainerAdapter adapter = getPresenceAdapter();
    assertNotNull(adapter);
    final IChatRoomManager chatRoomManager = adapter.getChatRoomManager();
    assertNotNull(chatRoomManager);
  }
View Full Code Here

Examples of org.eclipse.ecf.presence.chatroom.IChatRoomManager

    } catch (final IDCreateException e) {
      new IDCreateErrorDialog(null, connectID, e).open();
      return false;
    }

    final IChatRoomManager manager = (IChatRoomManager) this.container.getAdapter(IChatRoomManager.class);

    final IRCUI ui = new IRCUI(this.container, manager, null);
    ui.showForTarget(targetID);
    // If it's not already connected, then we connect this new container
    if (!ui.isContainerConnected()) {
View Full Code Here

Examples of org.eclipse.ecf.presence.chatroom.IChatRoomManager

  public String getTypeLabel() {
    return this.typeLabel;
  }

  public void open() {
    final IChatRoomManager manager = (IChatRoomManager) view.getRootChatRoomContainer();

    view.joinRoom(manager.getChatRoomInfo(channel), "");
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.