reintegrated redlist branch into trunk
[taxeditor.git] / eu.etaxonomy.taxeditor.store / src / main / java / eu / etaxonomy / taxeditor / handler / OpenDistributionEditorWizardHandler.java
1 // $Id$
2 /**
3 * Copyright (C) 2014 EDIT
4 * European Distributed Institute of Taxonomy
5 * http://www.e-taxonomy.eu
6 *
7 * The contents of this file are subject to the Mozilla Public License Version 1.1
8 * See LICENSE.TXT at the top of this package for the full license terms.
9 */
10 package eu.etaxonomy.taxeditor.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.jface.wizard.WizardDialog;
16
17 import eu.etaxonomy.taxeditor.preference.wizard.AvailableDistributionWizard;
18 import eu.etaxonomy.taxeditor.store.StoreUtil;
19
20 /**
21 * @author a.oppermann
22 * @date 21.07.2014
23 *
24 */
25 public class OpenDistributionEditorWizardHandler extends AbstractHandler{
26
27 String commandID = "eu.etaxonomy.taxeditor.store.open.OpenDistributionEditorWizardHandler";
28
29 @Override
30 public Object execute(ExecutionEvent event) throws ExecutionException {
31 AvailableDistributionWizard availableDistributionWizard = new AvailableDistributionWizard();
32 WizardDialog dialog = new WizardDialog(StoreUtil.getShell(),
33 availableDistributionWizard);
34
35 dialog.open();
36 return null;
37 }
38
39 }