}
}
- 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);
}
}
}