1
|
/**
|
2
|
* Copyright (C) 2007 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
|
|
10
|
package eu.etaxonomy.taxeditor.view.datasource.e4.handler;
|
11
|
|
12
|
import org.eclipse.core.runtime.IStatus;
|
13
|
import org.eclipse.jface.wizard.WizardDialog;
|
14
|
import org.eclipse.swt.widgets.Shell;
|
15
|
|
16
|
import eu.etaxonomy.taxeditor.datasource.wizard.CdmDataSourceWizard;
|
17
|
import eu.etaxonomy.taxeditor.view.datasource.CdmMetaDataAwareDataSourceContainer;
|
18
|
import eu.etaxonomy.taxeditor.view.datasource.e4.CdmDataSourceViewPartE4;
|
19
|
|
20
|
/**
|
21
|
*
|
22
|
* @author pplitzner
|
23
|
* @date 22.08.2017
|
24
|
*
|
25
|
*/
|
26
|
public class CreateDataSourceHandlerE4 extends AbstractDataSourceHandlerE4 {
|
27
|
|
28
|
/** {@inheritDoc} */
|
29
|
@Override
|
30
|
public boolean specificExecute(CdmDataSourceViewPartE4 dataSourceViewPart, CdmMetaDataAwareDataSourceContainer container, Shell shell) {
|
31
|
CdmDataSourceWizard wizard = new CdmDataSourceWizard();
|
32
|
|
33
|
WizardDialog dialog = new WizardDialog(shell, wizard);
|
34
|
|
35
|
return dialog.open() == IStatus.OK;
|
36
|
}
|
37
|
}
|