From aed321e2eef26c151a7942ba128495f7abfe81d6 Mon Sep 17 00:00:00 2001 From: Cherian Mathew Date: Fri, 7 Aug 2015 16:10:38 +0200 Subject: [PATCH] #5139 Add refresh of classification when new taxon is direct child or root node --- .../taxeditor/navigation/navigator/TaxonNavigator.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/eu.etaxonomy.taxeditor.navigation/src/main/java/eu/etaxonomy/taxeditor/navigation/navigator/TaxonNavigator.java b/eu.etaxonomy.taxeditor.navigation/src/main/java/eu/etaxonomy/taxeditor/navigation/navigator/TaxonNavigator.java index 91b9ad876..ccf26252a 100644 --- a/eu.etaxonomy.taxeditor.navigation/src/main/java/eu/etaxonomy/taxeditor/navigation/navigator/TaxonNavigator.java +++ b/eu.etaxonomy.taxeditor.navigation/src/main/java/eu/etaxonomy/taxeditor/navigation/navigator/TaxonNavigator.java @@ -526,7 +526,12 @@ public class TaxonNavigator extends CommonNavigator implements public void onChange(CdmChangeEvent event) { for(CdmBase cb : event.getChangedObjects()) { if(cb instanceof TaxonNode) { - getCommonViewer().refresh(cb); + TaxonNode tn = (TaxonNode)cb; + if(tn.getTaxon() == null) { + getCommonViewer().refresh(tn.getClassification()); + } else { + getCommonViewer().refresh(cb); + } } else if (cb instanceof Classification) { getCommonViewer().refresh(); } -- 2.34.1