Search in sources :

Example 1 with GccWizard

use of de.janrufmonitor.ui.jface.application.gcc.wizard.GccWizard in project janrufmonitor by tbrandt77.

the class GccCommand method asyncExecute.

public void asyncExecute() {
    try {
        WizardDialog.setDefaultImage(SWTImageManager.getInstance(this.getRuntime()).get(IJAMConst.IMAGE_KEY_PIM_ICON));
        GccWizard gccw = new GccWizard();
        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) GccWizard(de.janrufmonitor.ui.jface.application.gcc.wizard.GccWizard) WizardDialog(org.eclipse.jface.wizard.WizardDialog)

Aggregations

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