accountsViewer = new ComboViewer(parent, SWT.READ_ONLY | SWT.BORDER);
accountsViewer.getControl().setLayoutData(data);
accountsViewer.setContentProvider(new ArrayContentProvider());
accountsViewer.setLabelProvider(new LabelProvider() {
public String getText(Object element) {
MultiRosterAccount account = (MultiRosterAccount) element;
return account.getContainer().getConnectedID().getName();
}
});
accountsViewer.setInput(input);
accountsViewer.setSelection(new StructuredSelection(defaultRosterAccount));
selection = defaultRosterAccount.getPresenceContainerAdapter();