Project

General

Profile

Download (1 KB) Statistics
| Branch: | Tag: | Revision:
1
/**
2
* Copyright (C) 2017 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
package eu.etaxonomy.taxeditor.view.dataimport.e4.handler;
10

    
11
import org.eclipse.e4.core.contexts.ContextInjectionFactory;
12
import org.eclipse.e4.core.contexts.IEclipseContext;
13
import org.eclipse.e4.core.di.annotations.Execute;
14
import org.eclipse.jface.wizard.WizardDialog;
15
import org.eclipse.swt.widgets.Shell;
16

    
17
import eu.etaxonomy.taxeditor.view.dataimport.e4.SpecimenSearchWizard;
18

    
19
/**
20
 * @author pplitzner
21
 * @since Oct 4, 2017
22
 *
23
 */
24
public class OpenSpecimenImportWizard {
25

    
26
    @Execute
27
    public void execute(IEclipseContext ctx, Shell s)
28
    {
29
        SpecimenSearchWizard wizard = ContextInjectionFactory.make(SpecimenSearchWizard.class, ctx);
30
        wizard.init();
31
        WizardDialog dialog = new WizardDialog(s, wizard);
32
        dialog.open();
33
    }
34
}
    (1-1/1)