Package de.fu_berlin.inf.dpp.net

Examples of de.fu_berlin.inf.dpp.net.JID


     */
    public List<JID> getSelectedBuddiesWithSarosSupport() {
        List<JID> buddies = new ArrayList<JID>();
        for (Object element : ((CheckboxTreeViewer) this.viewer)
            .getCheckedElements()) {
            JID buddy = (JID) ((ITreeElement) element).getAdapter(JID.class);
            boolean isSarosSupported = element instanceof RosterEntryElement
                && ((RosterEntryElement) element).isSarosSupported();

            if (buddy != null && isSarosSupported)
                buddies.add(buddy);
View Full Code Here


    public List<JID> getBuddiesWithSarosSupport() {
        List<JID> buddies = new ArrayList<JID>();
        List<RosterEntryElement> objects = collectAllRosterEntryElement((TreeViewer) this.viewer);
        for (RosterEntryElement rosterEntryElement : objects) {
            if (rosterEntryElement.isSarosSupported()) {
                JID jid = (JID) rosterEntryElement.getAdapter(JID.class);
                if (jid != null && !buddies.contains(jid)) {
                    buddies.add(jid);
                }
            }
        }
View Full Code Here

TOP

Related Classes of de.fu_berlin.inf.dpp.net.JID

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.