2 * Copyright (C) 2007 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.
10 package eu
.etaxonomy
.taxeditor
.view
.datasource
.handler
;
12 import org
.eclipse
.core
.commands
.ExecutionEvent
;
13 import org
.eclipse
.core
.runtime
.IStatus
;
14 import org
.eclipse
.jface
.wizard
.WizardDialog
;
15 import org
.eclipse
.swt
.widgets
.Shell
;
16 import org
.eclipse
.ui
.handlers
.HandlerUtil
;
18 import eu
.etaxonomy
.taxeditor
.datasource
.wizard
.CdmDataSourceWizard
;
21 * <p>CreateDataSourceHandler class.</p>
27 public class CreateDataSourceHandler
extends AbstractDataSourceHandler
{
30 * @see eu.etaxonomy.taxeditor.store.datasource.handler.AbstractDataSourceHandler#specificExecute(org.eclipse.core.commands.ExecutionEvent)
34 public boolean specificExecute(ExecutionEvent event
) {
35 Shell shell
= HandlerUtil
.getActiveShell(event
);
36 CdmDataSourceWizard wizard
= new CdmDataSourceWizard();
38 WizardDialog dialog
= new WizardDialog(shell
, wizard
);
40 return dialog
.open() == IStatus
.OK
;