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.io.wizard;
|
11
|
|
12
|
import org.eclipse.jface.wizard.Wizard;
|
13
|
import org.eclipse.ui.IExportWizard;
|
14
|
|
15
|
import eu.etaxonomy.cdm.io.common.IIoConfigurator;
|
16
|
|
17
|
/**
|
18
|
* <p>Abstract AbstractExportWizard class.</p>
|
19
|
*
|
20
|
* @author n.hoffmann
|
21
|
* @created 24.06.2009
|
22
|
* @version 1.0
|
23
|
*/
|
24
|
public abstract class AbstractExportWizard<CONFIG extends IIoConfigurator> extends Wizard implements IExportWizard{
|
25
|
|
26
|
protected final String CONFIGURATION_PAGE = "CONFIGURATION_PAGE";
|
27
|
|
28
|
private GenericConfiguratorWizardPage pageConfiguration;
|
29
|
|
30
|
/* (non-Javadoc)
|
31
|
* @see org.eclipse.jface.wizard.Wizard#addPages()
|
32
|
*/
|
33
|
/** {@inheritDoc} */
|
34
|
@Override
|
35
|
public void addPages() {
|
36
|
super.addPages();
|
37
|
|
38
|
pageConfiguration = GenericConfiguratorWizardPage.Export(CONFIGURATION_PAGE, getConfigurator());
|
39
|
this.addPage(pageConfiguration);
|
40
|
}
|
41
|
|
42
|
/**
|
43
|
* <p>getConfigurator</p>
|
44
|
*
|
45
|
* @return a CONFIG object.
|
46
|
*/
|
47
|
public abstract CONFIG getConfigurator();
|
48
|
}
|