Revision 38ad71f9
Added by Katja Luther almost 7 years ago
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
ref #3866: adapt deleteHandler to taxonNavigatot changes