1 |
b6ea3484
|
n.hoffmann
|
/**
|
2 |
|
|
* Copyright (C) 2007 EDIT
|
3 |
9af003a7
|
Patrick Plitzner
|
* European Distributed Institute of Taxonomy
|
4 |
b6ea3484
|
n.hoffmann
|
* http://www.e-taxonomy.eu
|
5 |
9af003a7
|
Patrick Plitzner
|
*
|
6 |
b6ea3484
|
n.hoffmann
|
* 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 |
|
|
|
10 |
729887cf
|
n.hoffmann
|
package eu.etaxonomy.taxeditor.editor.handler.create;
|
11 |
b6ea3484
|
n.hoffmann
|
|
12 |
9af003a7
|
Patrick Plitzner
|
import javax.inject.Named;
|
13 |
|
|
|
14 |
|
|
import org.eclipse.e4.core.di.annotations.Execute;
|
15 |
|
|
import org.eclipse.e4.ui.services.IServiceConstants;
|
16 |
729887cf
|
n.hoffmann
|
import org.eclipse.jface.wizard.WizardDialog;
|
17 |
9af003a7
|
Patrick Plitzner
|
import org.eclipse.swt.widgets.Shell;
|
18 |
b6ea3484
|
n.hoffmann
|
|
19 |
f211dd28
|
n.hoffmann
|
import eu.etaxonomy.taxeditor.newWizard.NewNonViralNameWizard;
|
20 |
b6ea3484
|
n.hoffmann
|
|
21 |
|
|
/**
|
22 |
3be6ef3e
|
n.hoffmann
|
*
|
23 |
9af003a7
|
Patrick Plitzner
|
* @author pplitzner
|
24 |
|
|
* @date 10.10.2017
|
25 |
|
|
*
|
26 |
b6ea3484
|
n.hoffmann
|
*/
|
27 |
9af003a7
|
Patrick Plitzner
|
public class NewNameHandler {
|
28 |
b6ea3484
|
n.hoffmann
|
|
29 |
9af003a7
|
Patrick Plitzner
|
@Execute
|
30 |
|
|
public void execute(@Named(IServiceConstants.ACTIVE_SHELL)Shell shell) {
|
31 |
729887cf
|
n.hoffmann
|
NewNonViralNameWizard wizard = new NewNonViralNameWizard();
|
32 |
|
|
wizard.init(null, null);
|
33 |
9af003a7
|
Patrick Plitzner
|
WizardDialog dialog = new WizardDialog(shell, wizard);
|
34 |
729887cf
|
n.hoffmann
|
dialog.open();
|
35 |
9af003a7
|
Patrick Plitzner
|
|
36 |
b6ea3484
|
n.hoffmann
|
}
|
37 |
|
|
}
|