Search in sources :

Example 1 with UpdateWizard

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;
    }
}
Also used : Shell(org.eclipse.swt.widgets.Shell) Message(de.janrufmonitor.exception.Message) UpdateWizard(de.janrufmonitor.ui.jface.wizards.UpdateWizard) WizardDialog(org.eclipse.jface.wizard.WizardDialog)

Aggregations

Message (de.janrufmonitor.exception.Message)1 UpdateWizard (de.janrufmonitor.ui.jface.wizards.UpdateWizard)1 WizardDialog (org.eclipse.jface.wizard.WizardDialog)1 Shell (org.eclipse.swt.widgets.Shell)1