1 package eu
.etaxonomy
.taxeditor
.editor
.handler
;
4 import org
.eclipse
.core
.commands
.AbstractHandler
;
5 import org
.eclipse
.core
.commands
.ExecutionEvent
;
6 import org
.eclipse
.core
.commands
.ExecutionException
;
7 import org
.eclipse
.ui
.IEditorPart
;
9 import eu
.etaxonomy
.taxeditor
.editor
.molecular
.AlignmentEditor
;
10 import eu
.etaxonomy
.taxeditor
.model
.AbstractUtility
;
11 import eu
.etaxonomy
.taxeditor
.model
.MessagingUtils
;
15 public class AddAHandler
extends AbstractHandler
{
17 * @see org.eclipse.core.commands.IHandler#execute(org.eclipse.core.commands.ExecutionEvent)
20 public Object
execute(ExecutionEvent event
) throws ExecutionException
{
21 IEditorPart activeEditor
= AbstractUtility
.getActiveEditor();
22 if(activeEditor
instanceof AlignmentEditor
){
23 AlignmentEditor alignmentEditor
= (AlignmentEditor
) activeEditor
;
24 // alignmentEditor.getAlignmentArea().getSelection()
26 MessagingUtils
.informationDialog("Added A", "Added A");
27 return null; // Reserved for future use