Project

General

Profile

« Previous | Next » 

Revision bcc55cf4

Added by Katja Luther over 6 years ago

ref #3866: adapt deleteHandler to taxonNavigatot changes

View differences:

eu.etaxonomy.taxeditor.navigation/src/main/java/eu/etaxonomy/taxeditor/navigation/navigator/handler/RemotingDeleteTaxonNodeHandler.java
81 81
        if (treeNodes.size() == 1 ){
82 82
        	ITaxonTreeNode treeNode = treeNodes.iterator().next();
83 83
            ITaxonTreeNode taxonNode = treeNode;
84
            if (taxonNode instanceof Classification){
85
                taxonNode = CdmApplicationState.getCurrentAppConfig().getClassificationService().load(taxonNode.getUuid());
84
            if (taxonNode instanceof TaxonNode && !((TaxonNode)taxonNode).hasTaxon()){
85
                taxonNode = CdmApplicationState.getCurrentAppConfig().getClassificationService().load(((TaxonNode)taxonNode).getClassification().getUuid());
86 86
            }else{
87 87
                taxonNode = CdmApplicationState.getCurrentAppConfig().getTaxonNodeService().load(taxonNode.getUuid());
88 88
            }
89
            treeNodes = new HashSet<ITaxonTreeNode>();
90
            treeNodes.add(taxonNode);
89 91
            if (taxonNode == null){
90 92
            	MessagingUtils.informationDialog(Messages.RemotingDeleteTaxonNodeHandler_NODE_DELETED, Messages.RemotingDeleteTaxonNodeHandler_NODE_DELETED_MESSAGE);
91 93
            	return Status.CANCEL_STATUS;

Also available in: Unified diff