minor
authorKatja Luther <k.luther@bgbm.org>
Mon, 18 Apr 2016 11:21:19 +0000 (13:21 +0200)
committerKatja Luther <k.luther@bgbm.org>
Mon, 18 Apr 2016 11:21:19 +0000 (13:21 +0200)
eu.etaxonomy.taxeditor.navigation/src/main/java/eu/etaxonomy/taxeditor/navigation/NavigationUtil.java

index ba941c7..9d66a11 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) || type.getSuperclass().equals(TaxonBase.class)){
+           else if(TaxonBase.class.isAssignableFrom(type)){
                TaxonBase taxonBase = CdmStore.getService(ITaxonService.class).load(uuidAndTitleCache.getUuid());
                openEditor(taxonBase);
            }