if(((String) entry.getKey()).equals(I18N.gettext("filetransfer.Transfer_File")+ "..."))
{
if (a.getFullJID() != null)
{
item = new JMenuItem((String) entry.getKey());
final RosterMenuListener listener = (RosterMenuListener) entry.getValue();
item.addActionListener(new java.awt.event.ActionListener()
{
public void actionPerformed(ActionEvent e)
{
listener.actionPerformed(new UnknownJIDStatus(a.getFullJID()) , null);
}
});
actionMenu.add(item);
}
//TODO fix filetransfer with groupchat
}
else
{
item = new JMenuItem((String) entry.getKey());
final RosterMenuListener listener = (RosterMenuListener) entry.getValue();
item.addActionListener(new java.awt.event.ActionListener()
{
public void actionPerformed(ActionEvent e)
{
listener.actionPerformed(a , null);
}
});
actionMenu.add(item);
}
}