Project

General

Profile

Download (1.08 KB) Statistics
| Branch: | Tag: | Revision:
1
/**
2
* Copyright (C) 2007 EDIT
3
* European Distributed Institute of Taxonomy
4
* http://www.e-taxonomy.eu
5
*
6
* The contents of this file are subject to the Mozilla Public License Version 1.1
7
* See LICENSE.TXT at the top of this package for the full license terms.
8
*/
9
package eu.etaxonomy.taxeditor.molecular.editor.e4.handler;
10

    
11

    
12
import javax.inject.Named;
13

    
14
import org.eclipse.e4.core.di.annotations.Execute;
15
import org.eclipse.e4.ui.model.application.ui.basic.MPart;
16
import org.eclipse.e4.ui.services.IServiceConstants;
17

    
18
import eu.etaxonomy.taxeditor.molecular.editor.AlignmentEditor;
19
import eu.etaxonomy.taxeditor.molecular.editor.e4.AlignmentEditorE4;
20

    
21

    
22

    
23

    
24
/**
25
 * Reverse complements the single read sequence in an active {@link AlignmentEditor}, where the alignment cursor
26
 * is currently located.
27
 *
28
 * @author Ben Stöver
29
 */
30
public class ReverseComplementHandlerE4 {
31

    
32
    @Execute
33
    public void execute(@Named(IServiceConstants.ACTIVE_PART)MPart activePart) {
34
        AlignmentEditorE4 editor = (AlignmentEditorE4) activePart.getObject();
35
        editor.reverseComplementSelectedSequences();
36
    }
37
}
(11-11/17)