fix #5689
authorKatja Luther <k.luther@bgbm.org>
Mon, 18 Apr 2016 07:57:49 +0000 (09:57 +0200)
committerKatja Luther <k.luther@bgbm.org>
Mon, 18 Apr 2016 07:58:49 +0000 (09:58 +0200)
eu.etaxonomy.taxeditor.navigation/src/main/java/eu/etaxonomy/taxeditor/navigation/NavigationUtil.java

index 47d63d05bcf014099f9e4d58b06bd5d226398a2c..ba941c7b7844f449447b508c5e99c347c1b1010a 100644 (file)
@@ -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{