From: Katja Luther Date: Mon, 18 Apr 2016 07:57:49 +0000 (+0200) Subject: fix #5689 X-Git-Tag: 4.0.0^2~20 X-Git-Url: https://dev.e-taxonomy.eu/gitweb/taxeditor.git/commitdiff_plain/37e845b1544312b3cf1d3b7a790ea98458ec6f5f fix #5689 --- diff --git a/eu.etaxonomy.taxeditor.navigation/src/main/java/eu/etaxonomy/taxeditor/navigation/NavigationUtil.java b/eu.etaxonomy.taxeditor.navigation/src/main/java/eu/etaxonomy/taxeditor/navigation/NavigationUtil.java index 47d63d05b..ba941c7b7 100644 --- a/eu.etaxonomy.taxeditor.navigation/src/main/java/eu/etaxonomy/taxeditor/navigation/NavigationUtil.java +++ b/eu.etaxonomy.taxeditor.navigation/src/main/java/eu/etaxonomy/taxeditor/navigation/NavigationUtil.java @@ -74,7 +74,7 @@ public class NavigationUtil extends AbstractUtility{ TaxonNode taxonNode = CdmStore.getService(ITaxonNodeService.class).load(uuidAndTitleCache.getUuid()); openEditor(taxonNode); } - else if(type.equals(TaxonBase.class)){ + else if(type.equals(TaxonBase.class) || type.getSuperclass().equals(TaxonBase.class)){ TaxonBase taxonBase = CdmStore.getService(ITaxonService.class).load(uuidAndTitleCache.getUuid()); openEditor(taxonBase); } @@ -103,7 +103,7 @@ public class NavigationUtil extends AbstractUtility{ EditorUtil.openTaxonBase(entityUuid); }else if(selectedObject instanceof TaxonNameBase){ // TODO open bulk editor - MessagingUtils.warningDialog("Not implemented yet", NavigationUtil.class, "You tried to open a name. This is not handled by the software yet."); + MessagingUtils.warningDialog("Not implemented yet", NavigationUtil.class, "You tried to open a name. This is not handled by the software yet. For open a pure name you can use the bulk editor"); }else if(selectedObject instanceof PolytomousKey){ EditorUtil.openPolytomousKey(entityUuid); }else{