Project

General

Profile

Download (646 Bytes) Statistics
| Branch: | Tag: | Revision:
1
package eu.etaxonomy.taxeditor.molecular.handler;
2

    
3

    
4
import info.bioinfweb.libralign.alignmentarea.AlignmentArea;
5

    
6
import org.eclipse.core.commands.ExecutionEvent;
7

    
8
import eu.etaxonomy.taxeditor.molecular.editor.AlignmentEditor;
9

    
10

    
11

    
12
public class AlignmentEditorCutHandler extends AlignmentEditorCopyHandler {
13
	@Override
14
	protected void doExecute2(ExecutionEvent event, AlignmentEditor editor,	AlignmentArea focusedArea) {
15
		super.doExecute2(event, editor, focusedArea);  // Copy selected contents.
16
		focusedArea.getActionProvider().deleteForward();  // Delete selection. Direction does not matter, if selection is not empty.
17
	}
18
}
(5-5/21)