-package eu.etaxonomy.taxeditor.navigation.handler;
+package eu.etaxonomy.taxeditor.navigation.navigator.handler;
// $Id$
/**
* Copyright (C) 2007 EDIT
import org.eclipse.ui.handlers.HandlerUtil;
import eu.etaxonomy.taxeditor.navigation.NavigationUtil;
-import eu.etaxonomy.taxeditor.wizard.NewTaxonNodeWizard;
+import eu.etaxonomy.taxeditor.newWizard.NewTaxonNodeWizard;
/**
* <p>NewTaxonNodeHandler class.</p>
*/
/** {@inheritDoc} */
public Object execute(ExecutionEvent event) throws ExecutionException {
-
NewTaxonNodeWizard wizard = new NewTaxonNodeWizard();
+ wizard.init(null, null);
WizardDialog dialog = new WizardDialog(HandlerUtil.getActiveShell(event), wizard);
int status = dialog.open();
if(status == IStatus.OK && wizard.openInEditor()){
if(wizard.openEmpty()){
- NavigationUtil.openEmpty(wizard.getParent().getUuid());
+ NavigationUtil.openEmpty(wizard.getParentTreeNode().getUuid());
}else{
NavigationUtil.openEditor(wizard.getTaxonNode());
}