Merge branch 'develop' into LibrAlign
[taxeditor.git] / eu.etaxonomy.taxeditor.editor / src / main / java / eu / etaxonomy / taxeditor / editor / handler / OpenParentHandler.java
1 /**
2 * Copyright (C) 2007 EDIT
3 * European Distributed Institute of Taxonomy
4 * http://www.e-taxonomy.eu
5 *
6 * The contents of this file are subject to the Mozilla Public License Version 1.1
7 * See LICENSE.TXT at the top of this package for the full license terms.
8 */
9
10 package eu.etaxonomy.taxeditor.editor.handler;
11
12 import org.eclipse.core.commands.AbstractHandler;
13 import org.eclipse.core.commands.ExecutionEvent;
14 import org.eclipse.core.commands.ExecutionException;
15 import org.eclipse.core.commands.IHandler;
16
17 /**
18 * <p>OpenParentHandler class.</p>
19 *
20 * @author n.hoffmann
21 * @created 03.06.2009
22 * @version 1.0
23 */
24 public class OpenParentHandler extends AbstractHandler implements IHandler {
25
26 /** {@inheritDoc} */
27 public Object execute(ExecutionEvent event) throws ExecutionException {
28 throw new RuntimeException("Open parent not supported anymore");
29 // Taxon parent = EditorUtil.getActiveMultiPageTaxonEditor().getTaxon().getTaxonomicParent();
30 //
31 // if(parent != null){
32 // try {
33 // EditorUtil.openTaxonNode(parent.getUuid());
34 // } catch (PartInitException e) {
35 // throw new RuntimeException("Error opening parent taxon", e);
36 // } catch (Exception e) {
37 // MessagingUtils.warningDialog("Could not create Taxon", this, e.getMessage());
38 // }
39 // }
40 //
41 // return null;
42 }
43 }