Moved all logging and dialog functionality to the new class MessagingUtils.
[taxeditor.git] / eu.etaxonomy.taxeditor.navigation / src / main / java / eu / etaxonomy / taxeditor / navigation / navigator / handler / DeleteHandler.java
index ab4fc28ce2f08ef4ef55bd09bab5e59efd80b4ce..09c3f22daecbca943431234d7f3589eeca165cd8 100644 (file)
@@ -33,6 +33,7 @@ import eu.etaxonomy.cdm.model.taxon.Classification;
 import eu.etaxonomy.cdm.model.taxon.ITaxonTreeNode;
 import eu.etaxonomy.cdm.model.taxon.TaxonNode;
 import eu.etaxonomy.taxeditor.editor.TaxonEditorInput;
+import eu.etaxonomy.taxeditor.model.MessagingUtils;
 import eu.etaxonomy.taxeditor.navigation.NavigationUtil;
 import eu.etaxonomy.taxeditor.navigation.navigator.TaxonNavigator;
 import eu.etaxonomy.taxeditor.navigation.navigator.operation.DeleteOperation;
@@ -116,7 +117,7 @@ public class DeleteHandler extends AbstractHandler implements IHandler{
                
        
                        } catch (NotDefinedException e) {
-                               NavigationUtil.warn(getClass(), "Command name not set");
+                               MessagingUtils.warn(getClass(), "Command name not set");
                        }
                } else{
                        try{
@@ -131,7 +132,7 @@ public class DeleteHandler extends AbstractHandler implements IHandler{
                                        NavigationUtil.executeOperation(operation);
                                }
                        }catch (NotDefinedException e) {
-                               NavigationUtil.warn(getClass(), "Command name not set");
+                               MessagingUtils.warn(getClass(), "Command name not set");
                        }
                }
                return null;