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
;
13 import org
.eclipse
.jface
.wizard
.Wizard
;
14 import org
.eclipse
.ui
.IImportWizard
;
16 import eu
.etaxonomy
.cdm
.io
.common
.IImportConfigurator
;
17 import eu
.etaxonomy
.cdm
.io
.common
.IIoConfigurator
;
20 * <p>Abstract AbstractImportWizard class.</p>
26 public abstract class AbstractImportWizard
<CONFIG
extends IIoConfigurator
> extends Wizard
implements IImportWizard
{
28 protected final String CONFIGURATION_PAGE
= "CONFIGURATION_PAGE";
30 private GenericConfiguratorWizardPage pageConfiguration
;
31 private NomenclaturalCodeWizardPage pageNomenclaturalCode
;
35 * @see org.eclipse.jface.wizard.Wizard#addPages()
39 public void addPages() {
42 pageConfiguration
= GenericConfiguratorWizardPage
.Import(CONFIGURATION_PAGE
, getConfigurator());
43 this.addPage(pageConfiguration
);
45 pageNomenclaturalCode
= new NomenclaturalCodeWizardPage((IImportConfigurator
)getConfigurator());
46 this.addPage(pageNomenclaturalCode
);
50 * <p>getConfigurator</p>
52 * @return a CONFIG object.
54 public abstract CONFIG
getConfigurator();