Search in sources :

Example 1 with GosWizard

use of de.janrufmonitor.ui.jface.application.gos.wizard.GosWizard in project janrufmonitor by tbrandt77.

the class GosCommand method asyncExecute.

public void asyncExecute() {
    try {
        WizardDialog.setDefaultImage(SWTImageManager.getInstance(this.getRuntime()).get(IJAMConst.IMAGE_KEY_PIM_ICON));
        GosWizard gccw = new GosWizard();
        WizardDialog dlg = new WizardDialog(new Shell(DisplayManager.getDefaultDisplay()), gccw);
        dlg.open();
        if (dlg.getReturnCode() == WizardDialog.OK) {
        }
    } catch (Throwable t) {
        t.printStackTrace();
        this.m_logger.severe(t.getMessage() + " : " + t.toString());
        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) GosWizard(de.janrufmonitor.ui.jface.application.gos.wizard.GosWizard) WizardDialog(org.eclipse.jface.wizard.WizardDialog)

Aggregations

Message (de.janrufmonitor.exception.Message)1 GosWizard (de.janrufmonitor.ui.jface.application.gos.wizard.GosWizard)1 WizardDialog (org.eclipse.jface.wizard.WizardDialog)1 Shell (org.eclipse.swt.widgets.Shell)1