3 * Copyright (C) 2007 EDIT
4 * European Distributed Institute of Taxonomy
5 * http://www.e-taxonomy.eu
7 * The contents of this file are subject to the Mozilla Public License Version 1.1
8 * See LICENSE.TXT at the top of this package for the full license terms.
11 package eu
.etaxonomy
.taxeditor
.io
.wizard
;
15 import org
.eclipse
.jface
.viewers
.IStructuredSelection
;
16 import org
.eclipse
.ui
.IWorkbench
;
18 import eu
.etaxonomy
.cdm
.database
.DbSchemaValidation
;
19 import eu
.etaxonomy
.cdm
.io
.specimen
.abcd206
.in
.Abcd206ImportConfigurator
;
20 import eu
.etaxonomy
.taxeditor
.store
.CdmStore
;
23 * <p>AbcdImportWizard class.</p>
26 * @created Jun 16, 2010
29 public class AbcdImportWizard
extends AbstractImportWizard
<Abcd206ImportConfigurator
> {
31 private Abcd206ImportConfigurator configurator
;
32 private ImportFromFileDataSourceWizardPage dataSourcePage
;
35 * @see eu.etaxonomy.taxeditor.io.wizard.AbstractImportWizard#getConfigurator()
39 public Abcd206ImportConfigurator
getConfigurator() {
44 * @see org.eclipse.jface.wizard.Wizard#performFinish()
48 public boolean performFinish() {
49 URI source
= dataSourcePage
.getUri();
50 configurator
.setSource(source
);
51 configurator
.setDbSchemaValidation(DbSchemaValidation
.CREATE
);
53 CdmStore
.getImportManager().run(configurator
);
59 * @see org.eclipse.ui.IWorkbenchWizard#init(org.eclipse.ui.IWorkbench, org.eclipse.jface.viewers.IStructuredSelection)
62 public void init(IWorkbench workbench
, IStructuredSelection selection
) {
63 super.init(workbench
, selection
);
64 configurator
= CdmStore
.getImportManager().AbcdConfigurator();
68 * @see eu.etaxonomy.taxeditor.io.AbstractImportWizard#addPages()
72 public void addPages() {
75 dataSourcePage
= ImportFromFileDataSourceWizardPage
.XML();
76 addPage(dataSourcePage
);