2 * Copyright (C) 2016 EDIT
3 * European Distributed Institute of Taxonomy
4 * http://www.e-taxonomy.eu
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.
9 package eu
.etaxonomy
.taxeditor
.handler
;
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
;
16 import eu
.etaxonomy
.taxeditor
.databasePreferences
.wizard
.DatabasePreferencesWizard
;
17 import eu
.etaxonomy
.taxeditor
.store
.StoreUtil
;
24 public class OpenDatabasePreferencesWizardHandler
extends AbstractHandler
{
26 String commandID
= "eu.etaxonomy.taxeditor.store.open.OpenDatabasePreferencesWizardHandler";
29 public Object
execute(ExecutionEvent event
) throws ExecutionException
{
30 DatabasePreferencesWizard databasePreferencesWizard
= new DatabasePreferencesWizard();
31 WizardDialog dialog
= new WizardDialog(StoreUtil
.getShell(),
32 databasePreferencesWizard
);