if (treeNodes.size() == 1 ){
ITaxonTreeNode treeNode = treeNodes.iterator().next();
ITaxonTreeNode taxonNode = treeNode;
- if (taxonNode instanceof Classification){
- taxonNode = CdmApplicationState.getCurrentAppConfig().getClassificationService().load(taxonNode.getUuid());
+ if (taxonNode instanceof TaxonNode && !((TaxonNode)taxonNode).hasTaxon()){
+ taxonNode = CdmApplicationState.getCurrentAppConfig().getClassificationService().load(((TaxonNode)taxonNode).getClassification().getUuid());
}else{
taxonNode = CdmApplicationState.getCurrentAppConfig().getTaxonNodeService().load(taxonNode.getUuid());
}
+ treeNodes = new HashSet<ITaxonTreeNode>();
+ treeNodes.add(taxonNode);
if (taxonNode == null){
MessagingUtils.informationDialog(Messages.RemotingDeleteTaxonNodeHandler_NODE_DELETED, Messages.RemotingDeleteTaxonNodeHandler_NODE_DELETED_MESSAGE);
return Status.CANCEL_STATUS;