diff options
author | Yana Stamcheva <yana@jitsi.org> | 2012-08-30 10:56:36 +0000 |
---|---|---|
committer | Yana Stamcheva <yana@jitsi.org> | 2012-08-30 10:56:36 +0000 |
commit | 9931f4b8004a35f3d5cdfc2b408723d9201f340a (patch) | |
tree | 7de598ad7b54f51fef39a7de5fdaf1e672da4834 /src/net/java/sip/communicator/impl/gui/main/contactlist/ChooseUIContactDetailPopupMenu.java | |
parent | 325cea15eb5769a79aba5003442e1b1f957fa604 (diff) | |
download | jitsi-9931f4b8004a35f3d5cdfc2b408723d9201f340a.zip jitsi-9931f4b8004a35f3d5cdfc2b408723d9201f340a.tar.gz jitsi-9931f4b8004a35f3d5cdfc2b408723d9201f340a.tar.bz2 |
Making the contact list component available from outside the gui bundle.
Diffstat (limited to 'src/net/java/sip/communicator/impl/gui/main/contactlist/ChooseUIContactDetailPopupMenu.java')
-rw-r--r-- | src/net/java/sip/communicator/impl/gui/main/contactlist/ChooseUIContactDetailPopupMenu.java | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/net/java/sip/communicator/impl/gui/main/contactlist/ChooseUIContactDetailPopupMenu.java b/src/net/java/sip/communicator/impl/gui/main/contactlist/ChooseUIContactDetailPopupMenu.java index c1bbcd5..0568aa6 100644 --- a/src/net/java/sip/communicator/impl/gui/main/contactlist/ChooseUIContactDetailPopupMenu.java +++ b/src/net/java/sip/communicator/impl/gui/main/contactlist/ChooseUIContactDetailPopupMenu.java @@ -16,6 +16,7 @@ import javax.swing.*; import net.java.sip.communicator.impl.gui.*; import net.java.sip.communicator.impl.gui.utils.*; +import net.java.sip.communicator.service.gui.*; import net.java.sip.communicator.service.protocol.*; import net.java.sip.communicator.util.skin.*; import net.java.sip.communicator.util.swing.*; @@ -61,7 +62,8 @@ public class ChooseUIContactDetailPopupMenu for (UIContactDetail detail : contactDetails) { - this.addContactDetailItem(detail, action); + if (detail instanceof UIContactDetailImpl) + this.addContactDetailItem((UIContactDetailImpl) detail, action); } } @@ -91,7 +93,7 @@ public class ChooseUIContactDetailPopupMenu * would be performed when an item is selected */ private void addContactDetailItem( - final UIContactDetail contactDetail, + final UIContactDetailImpl contactDetail, final UIContactDetailAction contactDetailAction) { final ContactMenuItem contactItem @@ -168,9 +170,9 @@ public class ChooseUIContactDetailPopupMenu */ private static final long serialVersionUID = 0L; - private final UIContactDetail contact; + private final UIContactDetailImpl contact; - public ContactMenuItem(UIContactDetail contact) + public ContactMenuItem(UIContactDetailImpl contact) { this.contact = contact; |