} catch (CoreException e) {
statuses.add(e.getStatus());
}
// Refresh resource view
IRefreshablePart refresh = (IRefreshablePart) view.getAdapter(IRefreshablePart.class);
if (refresh != null) {
refresh.refresh();
}
if (!statuses.isEmpty()) {
IStatus multiStatus = new MultiStatus(UIPlugin.PLUGIN_ID,
0, statuses.toArray(new IStatus[statuses.size()]),