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
|
import org.eclipse.core.commands.ExecutionException;
|
8
|
|
9
|
import eu.etaxonomy.taxeditor.molecular.editor.AlignmentEditor;
|
10
|
|
11
|
|
12
|
|
13
|
public abstract class AbstractFocusedAlignmentAreaHandler extends AbstractAlignmentEditorHandler {
|
14
|
@Override
|
15
|
protected void doExecute(ExecutionEvent event, AlignmentEditor editor) throws ExecutionException {
|
16
|
AlignmentArea focusedArea = editor.getFocusedArea();
|
17
|
if (focusedArea != null) {
|
18
|
doExecute2(event, editor, focusedArea);
|
19
|
}
|
20
|
}
|
21
|
|
22
|
|
23
|
protected abstract void doExecute2(ExecutionEvent event, AlignmentEditor editor, AlignmentArea focusedArea);
|
24
|
}
|