}
}
- 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);
+ 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);
+ }
}
}
}
}
}
- /**
- * <p>openEditor</p>
- *
- * @param configuration a eu.etaxonomy.taxeditor.editor.OpenEditorConfiguration object.
- */
- public static void openEditor(OpenEditorConfiguration configuration) {
-
- }
-
/**
* <p>getShell</p>
*