Actions for creating and updating the consensus sequence in AlignmentEditor implemented.
[taxeditor.git] / eu.etaxonomy.taxeditor.editor / src / main / java / eu / etaxonomy / taxeditor / editor / handler / alignmenteditor / CreateConsensusSequenceHandler.java
index 1424b3088f8d55484f04e4637e63dc05655a0269..2a2cc73262a29bf6e5293d01709ed779dc49c94d 100644 (file)
@@ -16,13 +16,18 @@ import eu.etaxonomy.taxeditor.editor.molecular.AlignmentEditor;
 \r
 \r
 \r
+/**\r
+ * Handler that creates the consensus sequence from all single read sequences in the active instance\r
+ * of {@link AlignmentEditor}. A previously present consensus sequence will be overwritten.\r
+ *\r
+ * @author Ben Stöver\r
+ * @date 19.06.2015\r
+ * @see UpdateConsensusSequenceHandler\r
+ * @see AlignmentEditor#createConsensusSequence()\r
+ */\r
 public class CreateConsensusSequenceHandler extends AbstractAlignmentEditorHandler {\r
-    /* (non-Javadoc)\r
-     * @see eu.etaxonomy.taxeditor.editor.handler.alignmenteditor.AbstractAlignmentEditorHandler#doExecute(org.eclipse.core.commands.ExecutionEvent, eu.etaxonomy.taxeditor.editor.molecular.AlignmentEditor)\r
-     */\r
     @Override\r
     public void doExecute(ExecutionEvent event, AlignmentEditor editor) throws ExecutionException {\r
-        // TODO Auto-generated method stub\r
-\r
+        editor.createConsensusSequence();\r
     }\r
 }\r