if (treeNodes.size() == 1 ){
ITaxonTreeNode treeNode = treeNodes.iterator().next();
ITaxonTreeNode taxonNode = treeNode;
- taxonNode = CdmApplicationState.getCurrentAppConfig().getTaxonNodeService().load(taxonNode.getUuid());
+ if (taxonNode instanceof Classification){
+ taxonNode = CdmApplicationState.getCurrentAppConfig().getClassificationService().load(taxonNode.getUuid());
+ }else{
+ taxonNode = CdmApplicationState.getCurrentAppConfig().getTaxonNodeService().load(taxonNode.getUuid());
+ }
if (taxonNode == null){
MessagingUtils.informationDialog("Node already deleted", "The taxon node was already deleted. Please reopen the taxon navigator to refresh the view.");
return Status.CANCEL_STATUS;
-
+
}
TaxonNodeDeletionConfigurator configNodes = new TaxonNodeDeletionConfigurator();
if (taxonNode instanceof Classification && taxonNode.hasChildNodes()){