public void run() {
fail = !(catalogImport.getDialog().getCurrentPage() instanceof ConnectionErrorPage);
}
};
// sleep for 10 seconds, if dialog still active by then kill it
DialogDriver driver = new DialogDriver(catalogImport.getDialog(), new Object[]{a1,
IDialogConstants.CANCEL_ID});
driver.schedule();
catalogImport.getDialog().getWorkflowWizard().getWorkflow().setContext(context);
catalogImport.run(new DummyMonitor(), context);
driver.cancel();
}