import org.eclipse.core.runtime.Path;
import org.eclipse.jface.resource.ImageDescriptor;
+import eu.etaxonomy.taxeditor.model.AbstractUtility;
import eu.etaxonomy.taxeditor.molecular.TaxeditorMolecularPlugin;
+import eu.etaxonomy.taxeditor.molecular.editor.e4.AlignmentEditorE4;
import eu.etaxonomy.taxeditor.molecular.l10n.Messages;
throw new InternalError(String.format(Messages.HandlerTools_COULD_NOT_LOAD_ICON, iconName)); //TODO Throw other type of exception?
}
}
+ public static AlignmentEditorE4 getActiveAlignmentEditor() {
+ Object activeEditor = AbstractUtility.getActiveEditor();
+ if (activeEditor instanceof AlignmentEditorE4) {
+ return (AlignmentEditorE4)activeEditor;
+ }
+ else {
+ return null;
+ }
+ }
}