/* Refresh and show added Folder */
JobRunner.runInUIThread(fFolderViewer.getControl(), new Runnable() {
public void run() {
fFolderViewer.refresh();
FolderEvent event = events.iterator().next();
expand(event.getEntity());
}
});
}
@Override
public void entitiesAdded(final Set<FolderEvent> events) {
if (events.isEmpty())
return;
/* Select added Folder */
JobRunner.runInUIThread(SELECTION_DELAY, fFolderViewer.getControl(), new Runnable() {
public void run() {
FolderEvent event = events.iterator().next();
fFolderViewer.setSelection(new StructuredSelection(event.getEntity()));
}
});
}
};