1 |
1183a87f
|
Katja Luther
|
/**
|
2 |
|
|
* Copyright (C) 2016 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.handler;
|
10 |
|
|
|
11 |
ef32cd3e
|
Patrick Plitzner
|
import org.eclipse.e4.core.di.annotations.Execute;
|
12 |
1183a87f
|
Katja Luther
|
import org.eclipse.jface.wizard.WizardDialog;
|
13 |
|
|
|
14 |
6c704323
|
Katja Luther
|
import eu.etaxonomy.taxeditor.databaseAdmin.wizard.DatabaseRepairWizard;
|
15 |
ef32cd3e
|
Patrick Plitzner
|
import eu.etaxonomy.taxeditor.model.AbstractUtility;
|
16 |
1183a87f
|
Katja Luther
|
|
17 |
|
|
|
18 |
|
|
|
19 |
|
|
/**
|
20 |
|
|
* @author k.luther
|
21 |
|
|
* @date 06.12.2016
|
22 |
|
|
*
|
23 |
|
|
*/
|
24 |
ef32cd3e
|
Patrick Plitzner
|
public class OpenDatabaseRepairWizardHandler{
|
25 |
1183a87f
|
Katja Luther
|
|
26 |
|
|
/**
|
27 |
|
|
* {@inheritDoc}
|
28 |
|
|
*/
|
29 |
ef32cd3e
|
Patrick Plitzner
|
@Execute
|
30 |
|
|
public Object execute(){
|
31 |
1183a87f
|
Katja Luther
|
DatabaseRepairWizard databaseRepairWizard = new DatabaseRepairWizard();
|
32 |
ef32cd3e
|
Patrick Plitzner
|
WizardDialog dialog = new WizardDialog(AbstractUtility.getShell(),
|
33 |
1183a87f
|
Katja Luther
|
databaseRepairWizard);
|
34 |
|
|
|
35 |
|
|
dialog.open();
|
36 |
|
|
|
37 |
|
|
return null;
|
38 |
|
|
}
|
39 |
|
|
|
40 |
|
|
|
41 |
|
|
|
42 |
|
|
}
|