Package org.eclipse.ecf.presence

Examples of org.eclipse.ecf.presence.IPresenceListener


          public void run() {
            MessageDialog.openInformation(null, "XMPP message from "
                + chatMessage.getFromID().getName(), chatMessage.getBody());
          }
        });
      }},new IPresenceListener(){
      public void handlePresence(ID fromID, IPresence presence) {
        System.out.println("handlePresence("+fromID+","+presence+")");
      }});
  }
View Full Code Here


    List toNotify = null;
    synchronized (presenceListeners) {
      toNotify = new ArrayList(presenceListeners);
    }
    for (final Iterator i = toNotify.iterator(); i.hasNext();) {
      final IPresenceListener l = (IPresenceListener) i.next();
      l.handlePresence(fromID, presence);
    }
  }
View Full Code Here

TOP

Related Classes of org.eclipse.ecf.presence.IPresenceListener

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.