2 * Copyright (C) 2007 EDIT
3 * European Distributed Institute of Taxonomy
4 * http://www.e-taxonomy.eu
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.
10 package eu
.etaxonomy
.taxeditor
.editor
.handler
;
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
;
18 * <p>OpenParentHandler class.</p>
24 public class OpenParentHandler
extends AbstractHandler
implements IHandler
{
27 public Object
execute(ExecutionEvent event
) throws ExecutionException
{
28 throw new RuntimeException("Open parent not supported anymore"); //$NON-NLS-1$
29 // Taxon parent = EditorUtil.getActiveMultiPageTaxonEditor().getTaxon().getTaxonomicParent();
31 // if(parent != null){
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());