/* Ask for a restart if preferences have been imported */
if (importPreferences && preferences != null && !preferences.isEmpty()) {
boolean restart = MessageDialog.openQuestion(getShell(), Messages.ImportWizard_RESTART_RSSOWL, Messages.ImportWizard_RESTART_RSSOWL_INFO);
if (restart) {
BookMarkExplorer explorer = OwlUI.getOpenedBookMarkExplorer();
if (explorer != null)
explorer.saveStateOnDispose(false);
Controller.getDefault().restart();
return true;
}
}
/* Reveal and Select Target Folder */
if (target != null && target.getParent() != null) {
BookMarkExplorer explorer = OwlUI.getOpenedBookMarkExplorer();
if (explorer != null)
explorer.reveal(target, true);
}
/* Reload Imported Elements */
new ReloadTypesAction(new StructuredSelection(folderChilds), OwlUI.getPrimaryShell()).run();