Package org.eclipse.ecf.presence.im

Examples of org.eclipse.ecf.presence.im.IChatManager


  }

  public void testGetChatManager() {
    final IPresenceContainerAdapter adapter = getPresenceAdapter();
    assertNotNull(adapter);
    final IChatManager chatManager = adapter.getChatManager();
    assertNotNull(chatManager);
  }
View Full Code Here


          });
        }
      }
    });

    final IChatManager icm = adapter.getChatManager();
    icms = icm.getChatMessageSender();
    itms = icm.getTypingMessageSender();

    icm.addMessageListener(new IIMMessageListener() {
      public void handleMessageEvent(IIMMessageEvent e) {
        if (e instanceof IChatMessageEvent) {
          displayMessage((IChatMessageEvent) e);
        } else if (e instanceof ITypingMessageEvent) {
          displayTypingNotification((ITypingMessageEvent) e);
View Full Code Here

  protected void sendPrivateTextMsg(IUser data) {
    if (this.view.lch != null) {
      IPresenceContainerAdapter ipca = this.view.lch.getPresenceContainer();
      MessagesView messagesView = this.view.lch.findMessagesView();
      if (messagesView != null) {
        IChatManager chatManager = ipca.getChatManager();
        messagesView.openTab(chatManager.getChatMessageSender(), chatManager.getTypingMessageSender(), this.view.lch.getContainerID(), data.getID());
      }
    }
  }
View Full Code Here

  /**
   * @param presenceContainerAdapter
   */
  private void openContainer(IContainer container) {
    final IPresenceContainerAdapter presenceContainerAdapter = (IPresenceContainerAdapter) container.getAdapter(IPresenceContainerAdapter.class);
    final IChatManager chatManager = presenceContainerAdapter.getChatManager();
    final IRosterManager rosterManager = presenceContainerAdapter.getRosterManager();
    if (chatManager != null && rosterManager != null) {
      try {
        // get local ID
        final XMPPID localID = (XMPPID) rosterManager.getRoster().getUser().getID();
View Full Code Here

TOP

Related Classes of org.eclipse.ecf.presence.im.IChatManager

Copyright © 2018 www.massapicom. 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.