ref #6925 Open "editors" in editor area
[taxeditor.git] / eu.etaxonomy.taxeditor.editor / src / main / java / eu / etaxonomy / taxeditor / editor / handler / EditNewTaxonHandler.java
index 181a00cb041ffeae5189254e2dc8f5dde31266ee..7e309a40be1a05b760233567320a941d2bd244e1 100644 (file)
@@ -1,8 +1,8 @@
 /**
 * Copyright (C) 2007 EDIT
-* European Distributed Institute of Taxonomy 
+* European Distributed Institute of Taxonomy
 * http://www.e-taxonomy.eu
-* 
+*
 * The contents of this file are subject to the Mozilla Public License Version 1.1
 * See LICENSE.TXT at the top of this package for the full license terms.
 */
@@ -14,8 +14,6 @@ import org.eclipse.core.commands.AbstractHandler;
 import org.eclipse.core.commands.ExecutionEvent;
 import org.eclipse.core.commands.ExecutionException;
 import org.eclipse.core.commands.IHandler;
-import org.eclipse.swt.widgets.Display;
-import org.eclipse.ui.PartInitException;
 
 import eu.etaxonomy.taxeditor.editor.EditorUtil;
 
@@ -34,15 +32,12 @@ public class EditNewTaxonHandler extends AbstractHandler implements IHandler {
         * @see org.eclipse.core.commands.IHandler#execute(org.eclipse.core.commands.ExecutionEvent)
         */
        /** {@inheritDoc} */
-       public Object execute(ExecutionEvent event) throws ExecutionException {
-               
+       @Override
+    public Object execute(ExecutionEvent event) throws ExecutionException {
+
                logger.debug("Handler called: " + this.getClass().getCanonicalName()); //$NON-NLS-1$
-               
-               try {
-                       EditorUtil.openEmpty(null);
-               } catch (PartInitException e) {
-                       e.printStackTrace();
-               }
+
+               EditorUtil.openEmptyE4(null);
 
                return null;
        }