Project

General

Profile

« Previous | Next » 

Revision 1afe3ed2

Added by Ben Stöver over 8 years ago

JavaDoc extended.
Different LibrAlign model action used in AlignmentEditorCutHandler.

View differences:

eu.etaxonomy.taxeditor.molecular/src/main/java/eu/etaxonomy/taxeditor/molecular/handler/AlignmentEditorCutHandler.java
9 9

  
10 10

  
11 11

  
12
/**
13
 * Handler that cuts the currently selected nucleotides from an alignment editor to the clipboard.
14
 * <p>
15
 * The cut contents either come from the single reads or the consensus sequence alignment area,
16
 * depending on which component currently has the focus. If none of these components has the focus,
17
 * nothing will be cut, even if nucleotides are currently selected.
18
 * <p>
19
 * If the selection contains parts of multiple sequence, these are separated by the line separator
20
 * of the current operating system.  
21
 * 
22
 * @author Ben Stöver
23
 * @date 25.08.2015
24
 */
12 25
public class AlignmentEditorCutHandler extends AlignmentEditorCopyHandler {
13 26
	@Override
14 27
	protected void doExecute2(ExecutionEvent event, AlignmentEditor editor,	AlignmentArea focusedArea) {
15 28
		super.doExecute2(event, editor, focusedArea);  // Copy selected contents.
16
		focusedArea.getActionProvider().deleteForward();  // Delete selection. Direction does not matter, if selection is not empty.
29
		focusedArea.getActionProvider().deleteSelection();
17 30
	}
18 31
}

Also available in: Unified diff