Issue #2563 fixed label issue for non-grouped roster entry

the old code assumed that the username was populated in the roster object
new code uses the userId which is always populated


Former-commit-id: 0124fbd68d [formerly 0ce560149e] [formerly 73347283b6] [formerly 0124fbd68d [formerly 0ce560149e] [formerly 73347283b6] [formerly d07bc465d4 [formerly 73347283b6 [formerly 5fe0f88b3465ba65efabe2a41d1df392c85e041f]]]]
Former-commit-id: d07bc465d4
Former-commit-id: 95c30dbe0f [formerly 5dcaa98110] [formerly 59f71ff2ec1502a0ff12db79de7f3fc00a2159bd [formerly 0f4be44a23]]
Former-commit-id: 17d976b3c03dfc4f2e898f19d4930be8e9d50ba3 [formerly 70d4484473]
Former-commit-id: 73a3213cd1
This commit is contained in:
Brian Clements 2013-12-20 14:40:00 -06:00
parent 4f746b4f28
commit 869430c984

View file

@ -125,7 +125,8 @@ public class UsersTreeLabelProvider extends ColumnLabelProvider {
if (element instanceof RosterGroup) {
return ((RosterGroup) element).getName();
} else if (element instanceof RosterEntry) {
return ((RosterEntry) element).getName();
return userLabelProvider.getText(IDConverter
.convertFrom((RosterEntry) element));
} else if (element instanceof SessionGroupContainer) {
return "Active Sessions";
} else if (element instanceof UserId) {