merge-update from trunk
[taxeditor.git] / eu.etaxonomy.taxeditor.editor / src / main / java / eu / etaxonomy / taxeditor / editor / handler / AddAHandler.java
1 package eu.etaxonomy.taxeditor.editor.handler;
2
3
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;
8
9 import eu.etaxonomy.taxeditor.editor.molecular.AlignmentEditor;
10 import eu.etaxonomy.taxeditor.model.AbstractUtility;
11 import eu.etaxonomy.taxeditor.model.MessagingUtils;
12
13
14
15 public class AddAHandler extends AbstractHandler {
16 /* (non-Javadoc)
17 * @see org.eclipse.core.commands.IHandler#execute(org.eclipse.core.commands.ExecutionEvent)
18 */
19 @Override
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()
25 }
26 MessagingUtils.informationDialog("Added A", "Added A");
27 return null; // Reserved for future use
28 }
29
30
31 }