Project

General

Profile

Download (1.1 KB) Statistics
| Branch: | Tag: | Revision:
1
/**
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
import org.eclipse.core.commands.AbstractHandler;
12
import org.eclipse.core.commands.ExecutionEvent;
13
import org.eclipse.core.commands.ExecutionException;
14
import org.eclipse.jface.wizard.WizardDialog;
15

    
16
import eu.etaxonomy.taxeditor.databasePreferences.wizard.DatabaseRepairWizard;
17
import eu.etaxonomy.taxeditor.store.StoreUtil;
18

    
19

    
20

    
21
/**
22
 * @author k.luther
23
 * @date 06.12.2016
24
 *
25
 */
26
public class OpenDatabaseRepairWizardHandler extends AbstractHandler {
27

    
28
    /**
29
     * {@inheritDoc}
30
     */
31
    @Override
32
    public Object execute(ExecutionEvent event) throws ExecutionException {
33
        DatabaseRepairWizard databaseRepairWizard = new DatabaseRepairWizard();
34
        WizardDialog dialog = new WizardDialog(StoreUtil.getShell(),
35
                databaseRepairWizard);
36

    
37
        dialog.open();
38

    
39
        return null;
40
    }
41

    
42

    
43

    
44
}
(2-2/11)