use of de.janrufmonitor.ui.jface.wizards.UpdateWizard in project janrufmonitor by tbrandt77.
the class UpdatesCommand method asyncExecute.
public void asyncExecute() {
try {
WizardDialog.setDefaultImage(SWTImageManager.getInstance(this.getRuntime()).get(IJAMConst.IMAGE_KEY_PIM_ICON));
UpdateWizard updates = new UpdateWizard(this.m_preload);
Shell s = new Shell(DisplayManager.getDefaultDisplay());
WizardDialog dlg = new WizardDialog(s, updates);
DisplayManager.forceForeground(s);
dlg.open();
this.m_preload = false;
if (dlg.getReturnCode() == WizardDialog.OK) {
}
} catch (Throwable t) {
this.m_logger.log(Level.SEVERE, t.getMessage(), t);
PropagationFactory.getInstance().fire(new Message(Message.ERROR, this.getNamespace(), t.toString().toLowerCase(), t));
} finally {
this.isExecuting = false;
}
}
Aggregations