}\r
return taxonEditors;\r
}\r
+ \r
+ /**\r
+ * Returns the currently active taxon editor\r
+ * \r
+ * @return the taxon editor that has focus\r
+ */\r
+ public static MultiPageTaxonEditor getActiveEditor(){\r
+ if(getActivePage().getActiveEditor() instanceof MultiPageTaxonEditor){\r
+ return (MultiPageTaxonEditor) getActivePage().getActiveEditor();\r
+ }\r
+ return null;\r
+ }\r
\r
public static IUndoContext getUndoContext(Taxon taxon) {\r
// TODO make this taxon name editor specific\r
// return getTaxonNameEditor(taxon).getUndoContext();\r
- return IOperationHistory.GLOBAL_UNDO_CONTEXT;\r
+ return getUndoContext();\r
+ }\r
+\r
+ public static IUndoContext getUndoContext() {\r
+ return IOperationHistory.GLOBAL_UNDO_CONTEXT;\r
}\r
\r
\r