Revision 41e2f693
Added by Cherian Mathew over 9 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/io/ImportManager.java | ||
---|---|---|
29 | 29 |
import eu.etaxonomy.cdm.io.specimen.excel.in.SpecimenCdmExcelImportConfigurator; |
30 | 30 |
import eu.etaxonomy.cdm.io.tcsxml.in.TcsXmlImportConfigurator; |
31 | 31 |
import eu.etaxonomy.taxeditor.model.CdmProgressMonitorAdapter; |
32 |
import eu.etaxonomy.taxeditor.model.MessagingUtils; |
|
32 | 33 |
import eu.etaxonomy.taxeditor.store.CdmStore; |
33 |
import eu.etaxonomy.taxeditor.store.StoreUtil; |
|
34 | 34 |
|
35 | 35 |
/** |
36 | 36 |
* <p> |
... | ... | |
98 | 98 |
importer.invoke(configurator); |
99 | 99 |
monitor.worked(80); |
100 | 100 |
} catch (RuntimeException e) { |
101 |
StoreUtil.errorDialog(
|
|
101 |
MessagingUtils.messageDialog(
|
|
102 | 102 |
"Error importing data", |
103 | 103 |
this, |
104 | 104 |
"An error occured while" |
... | ... | |
147 | 147 |
case SpecimenCdmExcel: |
148 | 148 |
return SpecimenCdmExcelImportConfigurator.NewInstance(null, null); |
149 | 149 |
default: |
150 |
StoreUtil.notImplementedMessage(this);
|
|
150 |
MessagingUtils.notImplementedMessage(this);
|
|
151 | 151 |
throw new IllegalArgumentException("Import not supported yet"); |
152 | 152 |
} |
153 | 153 |
} |
Also available in: Unified diff
Moved all logging and dialog functionality to the new class MessagingUtils.
Refactoring code to adapt to above change.
Added new custom error dialog - CdmErrorDialog
Added runtime exception handling to the ApplicationWorkbenchAdvisor by adding a custom status handler