*/
protected void fireEventComplete(final IUserSearchCompleteEvent event) {
new UIJob(Messages.SearchContactDialog_UserSearchJobName) {
public IStatus runInUIThread(IProgressMonitor monitor) {
try {
final UserSearchView view = (UserSearchView) PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().showView(UserSearchView.VIEW_ID);
view.showMessage(Messages.SearchContactDialog_SearchingMessage);
view.addMultiRosterAccount(account);
view.addResult(event.getSearch().getResultList());
} catch (PartInitException e) {
Activator.getDefault().getLog().log(new Status(IStatus.ERROR, Activator.PLUGIN_ID, IStatus.ERROR, e.getLocalizedMessage(), e));
return new Status(IStatus.ERROR, Activator.PLUGIN_ID, IStatus.ERROR, "Exception showing search results view", e); //$NON-NLS-1$
}
return Status.OK_STATUS;