Merge "Issue #2799 fixed double click chat not working for roster entries" into development

Former-commit-id: 381c3f6c6585f414c27b771168746f6dd838df0c
This commit is contained in:
Nate Jensen 2014-02-12 17:34:27 -06:00 committed by Gerrit Code Review
commit 6093312861

View file

@ -141,6 +141,7 @@ import com.raytheon.viz.ui.views.CaveFloatingView;
* Jan 27, 2014 2700 bclement fixed context menu for roster entries
* Jan 30, 2014 2698 bclement fixed alias not working for roster entries
* removed unneeded subscription for nickname changed events
* Feb 12, 2014 2799 bclement fixed double click chat not working for roster entries
*
* </pre>
*
@ -483,8 +484,9 @@ public class CollaborationGroupView extends CaveFloatingView implements
TreeSelection selection = (TreeSelection) usersTreeViewer
.getSelection();
Object o = selection.getFirstElement();
if (o instanceof UserId) {
new PeerToPeerChatAction((UserId) o).run();
if (o instanceof RosterEntry) {
UserId user = IDConverter.convertFrom((RosterEntry) o);
new PeerToPeerChatAction(user).run();
} else if (o instanceof IVenueSession) {
new ShowVenueAction((IVenueSession) o).run();
}