Moved all logging and dialog functionality to the new class MessagingUtils.
[taxeditor.git] / eu.etaxonomy.taxeditor.editor / src / main / java / eu / etaxonomy / taxeditor / editor / name / handler / SwapSynonymAndAcceptedHandler.java
index 55c685bdfbc2213e4ddf4c10c1d312453b9e3036..d8c0e370fdd71db8eb35e3d8c90721fd68edc9b7 100644 (file)
@@ -26,6 +26,7 @@ import eu.etaxonomy.cdm.model.taxon.Taxon;
 import eu.etaxonomy.taxeditor.editor.EditorUtil;
 import eu.etaxonomy.taxeditor.editor.MultiPageTaxonEditor;
 import eu.etaxonomy.taxeditor.editor.name.operation.SwapSynonymAndAcceptedOperation;
+import eu.etaxonomy.taxeditor.model.MessagingUtils;
 import eu.etaxonomy.taxeditor.operation.IPostOperationEnabled;
 
 /**
@@ -102,7 +103,7 @@ public class SwapSynonymAndAcceptedHandler extends AbstractHandler implements
                                        EditorUtil.openTaxonBase(taxon.getUuid());
                                        
                                } catch (Exception e) {
-                                       EditorUtil.warningDialog("Could not open editor for taxon", this, e.getMessage());
+                                       MessagingUtils.warningDialog("Could not open editor for taxon", this, e.getMessage());
                                }
                                
                        }