improve delete of classifications
authorKatja Luther <k.luther@bgbm.org>
Fri, 8 Nov 2013 13:20:01 +0000 (13:20 +0000)
committerKatja Luther <k.luther@bgbm.org>
Fri, 8 Nov 2013 13:20:01 +0000 (13:20 +0000)
eu.etaxonomy.taxeditor.navigation/src/main/java/eu/etaxonomy/taxeditor/navigation/navigator/handler/DeleteHandler.java

index ef3965ce6c127625fd34f6839cd151e9d7192422..d632a6bcbcbfa7b764a39958b26b5329dad74575 100644 (file)
@@ -88,20 +88,20 @@ public class DeleteHandler extends AbstractHandler implements IHandler{
        
                                if (allEditorsClosed){
                                        ITaxonTreeNode treeNode = treeNodes.iterator().next();
-                                       if (treeNode instanceof Classification){
+                                       /*if (treeNode instanceof Classification){
                                                operation = new DeleteOperation(
                                                                event.getCommand().getName(), NavigationUtil.getUndoContext(),
                                                                treeNodes, new TaxonDeletionConfigurator(), taxonNavigator, taxonNavigator);
                        
                                                NavigationUtil.executeOperation(operation);
-                                       }else {
-                                               TaxonNode taxonNode = (TaxonNode)treeNode;
+                                       }else {*/
+                                               ITaxonTreeNode taxonNode =treeNode;
                                                operation = new DeleteOperation(
                                                                event.getCommand().getName(), NavigationUtil.getUndoContext(),
                                                                taxonNode, new TaxonDeletionConfigurator(), taxonNavigator, taxonNavigator);
                        
                                                NavigationUtil.executeOperation(operation);
-                                               }
+                                               //}
                                }