AnsweredAssumed Answered

Context Menu Jabber ID

Question asked by penguinmeow on Aug 24, 2008
Latest reply on Aug 28, 2008 by penguinmeow
I am trying to get the full Jabber ID of a user in the code that is below.  Would anyone be able to help?

Thanks.


  private void addContactListListener(){
        Workspace workspace = SparkManager.getWorkspace();
        ContactList contactList = workspace.getContactList();

        final Action sayHelloAction = new AbstractAction() {
            public void actionPerformed(ActionEvent actionEvent) {


// String URLuser = FullJabberID;


                JOptionPane.showMessageDialog(SparkManager.getMainWindow(), "http://host/" + URLuser);
            }
        };

        sayHelloAction.putValue(Action.NAME, "Open URL");

        contactList.addContextMenuListener(new ContextMenuListener() {
            public void poppingUp(Object object, JPopupMenu popup) {
                if(object instanceof ContactItem){
                    popup.add(sayHelloAction);
                }
            }

            public void poppingDown(JPopupMenu popup) {

            }

            public boolean handleDefaultAction(MouseEvent e) {
                return false;
            }
        });
    }

Outcomes