Revision 41e2f693
Added by Cherian Mathew over 9 years ago
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/name/handler/SwapSynonymAndAcceptedHandler.java | ||
---|---|---|
26 | 26 |
import eu.etaxonomy.taxeditor.editor.EditorUtil; |
27 | 27 |
import eu.etaxonomy.taxeditor.editor.MultiPageTaxonEditor; |
28 | 28 |
import eu.etaxonomy.taxeditor.editor.name.operation.SwapSynonymAndAcceptedOperation; |
29 |
import eu.etaxonomy.taxeditor.model.MessagingUtils; |
|
29 | 30 |
import eu.etaxonomy.taxeditor.operation.IPostOperationEnabled; |
30 | 31 |
|
31 | 32 |
/** |
... | ... | |
102 | 103 |
EditorUtil.openTaxonBase(taxon.getUuid()); |
103 | 104 |
|
104 | 105 |
} catch (Exception e) { |
105 |
EditorUtil.warningDialog("Could not open editor for taxon", this, e.getMessage());
|
|
106 |
MessagingUtils.warningDialog("Could not open editor for taxon", this, e.getMessage());
|
|
106 | 107 |
} |
107 | 108 |
|
108 | 109 |
} |
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