Issue #2785 - Fix loading of groups in sub request dialog
Change-Id: If42e1f3fe80bde16fcc86dfa0a0b5673e5359722 Former-commit-id:8a4ff61155
[formerlyc70da23f91
] [formerly3a6e718ff0
] [formerly3a6e718ff0
[formerly81e4c9b05d
]] [formerlyd2a80ca966
[formerly3a6e718ff0
[formerly81e4c9b05d
] [formerlyd2a80ca966
[formerly e72a852935dcb519604b37dc873645d4b419ee43]]]] Former-commit-id:d2a80ca966
Former-commit-id: 5c7a4c71abbecedb3aa0c21693baaf0dec59b071 [formerly 97976d43b384551d73f379695ead9b9d54c82cb5] [formerly0bf14203ff
[formerly4773c3722c
]] Former-commit-id:0bf14203ff
Former-commit-id:dceb75c423
This commit is contained in:
parent
f92f134629
commit
1c325ae535
1 changed files with 5 additions and 4 deletions
|
@ -54,6 +54,7 @@ import com.raytheon.viz.ui.dialogs.CaveSWTDialog;
|
|||
* Jan 31, 2014 2700 bclement don't prompt for group if user is already in one
|
||||
* Feb 13, 2014 2755 bclement roster addition now done in account manager, user input passed back
|
||||
* Apr 07, 2014 2785 mpduff Changed to implement CaveSWTDialog
|
||||
* Fix loading of groups
|
||||
*
|
||||
* </pre>
|
||||
*
|
||||
|
@ -148,11 +149,11 @@ public class SubRequestDialog extends CaveSWTDialog {
|
|||
if (connection == null) {
|
||||
return new String[0];
|
||||
}
|
||||
Collection<RosterGroup> groups = connection.getContactsManager()
|
||||
Collection<RosterGroup> rosterGroups = connection.getContactsManager()
|
||||
.getGroups();
|
||||
List<String> groupList = new ArrayList<String>(groups.size());
|
||||
for (String group : groupList) {
|
||||
groupList.add(group);
|
||||
List<String> groupList = new ArrayList<String>(rosterGroups.size());
|
||||
for (RosterGroup group : rosterGroups) {
|
||||
groupList.add(group.getName());
|
||||
}
|
||||
|
||||
Collections.sort(groupList);
|
||||
|
|
Loading…
Add table
Reference in a new issue