Makes user defined areas available. Fixes issues that stem from the refactoring.
[taxeditor.git] / taxeditor-navigation / src / main / java / eu / etaxonomy / taxeditor / navigation / NavigationUtil.java
index 0c6ed7b160bf56a54ed4890072ad69fd16c41eda..49d8a37abb5afc02b5ee7c744558df059cc0694e 100644 (file)
@@ -102,15 +102,13 @@ public class NavigationUtil extends AbstractUtility{
                }
        }
        
-       public static void openEditor(Object selectedObject){
-               if (selectedObject instanceof UuidAndTitleCache){
-                       Class type = ((UuidAndTitleCache) selectedObject).getType();
-                       if(type == Taxon.class || type == Synonym.class){
-                               try {
-                                       EditorUtil.openTaxonBase(((UuidAndTitleCache) selectedObject).getUuid());
-                               } catch (PartInitException e) {
-                                       NavigationUtil.error(NavigationUtil.class, "Error opening the editor", e);
-                               }
+       public static void openEditor(UuidAndTitleCache selectedObject){
+               Class type = ((UuidAndTitleCache) selectedObject).getType();
+               if(type == Taxon.class || type == Synonym.class){
+                       try {
+                               EditorUtil.openTaxonBase(((UuidAndTitleCache) selectedObject).getUuid());
+                       } catch (PartInitException e) {
+                               NavigationUtil.error(NavigationUtil.class, "Error opening the editor", e);
                        }
                }
        }