Package org.eclipse.ecf.presence.chatroom

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


  }

  private void sendMessage(ID id, String message) {
    try {
      if (container != null) {
        IChatRoomMessageSender sender = (IChatRoomMessageSender) messageSenders
            .get(id);
        if (sender == null) {
          chatMessageSender.sendChatMessage(id, message);
        } else {
          sender.sendMessage(message);
        }
      }
    } catch (ECFException e) {
      e.printStackTrace();
      container.disconnect();
View Full Code Here


  public IChatMessageSender getPrivateMessageSender() {
    return privateSender;
  }

  public IChatRoomMessageSender getChatRoomMessageSender() {
    return new IChatRoomMessageSender() {
      public void sendMessage(String messageBody) throws ECFException {
        if (multiuserchat != null) {
          try {
            multiuserchat.sendMessage(messageBody);
          } catch (final Exception e) {
View Full Code Here

TOP

Related Classes of org.eclipse.ecf.presence.chatroom.IChatRoomMessageSender

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.