1 |
13862f35
|
n.hoffmann
|
/**
|
2 |
|
|
* Copyright (C) 2007 EDIT
|
3 |
159bb3e7
|
Katja Luther
|
* European Distributed Institute of Taxonomy
|
4 |
13862f35
|
n.hoffmann
|
* http://www.e-taxonomy.eu
|
5 |
159bb3e7
|
Katja Luther
|
*
|
6 |
13862f35
|
n.hoffmann
|
* 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 |
3be6ef3e
|
n.hoffmann
|
* <p>Abstract AbstractExportWizard class.</p>
|
19 |
|
|
*
|
20 |
13862f35
|
n.hoffmann
|
* @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 |
159bb3e7
|
Katja Luther
|
|
26 |
|
|
protected final String CONFIGURATION_PAGE = "CONFIGURATION_PAGE";
|
27 |
|
|
|
28 |
13862f35
|
n.hoffmann
|
private GenericConfiguratorWizardPage pageConfiguration;
|
29 |
159bb3e7
|
Katja Luther
|
|
30 |
13862f35
|
n.hoffmann
|
/* (non-Javadoc)
|
31 |
|
|
* @see org.eclipse.jface.wizard.Wizard#addPages()
|
32 |
|
|
*/
|
33 |
3be6ef3e
|
n.hoffmann
|
/** {@inheritDoc} */
|
34 |
13862f35
|
n.hoffmann
|
@Override
|
35 |
|
|
public void addPages() {
|
36 |
|
|
super.addPages();
|
37 |
159bb3e7
|
Katja Luther
|
|
38 |
|
|
pageConfiguration = GenericConfiguratorWizardPage.Export(CONFIGURATION_PAGE, getConfigurator(), null);
|
39 |
13862f35
|
n.hoffmann
|
this.addPage(pageConfiguration);
|
40 |
|
|
}
|
41 |
159bb3e7
|
Katja Luther
|
|
42 |
3be6ef3e
|
n.hoffmann
|
/**
|
43 |
|
|
* <p>getConfigurator</p>
|
44 |
|
|
*
|
45 |
|
|
* @return a CONFIG object.
|
46 |
|
|
*/
|
47 |
13862f35
|
n.hoffmann
|
public abstract CONFIG getConfigurator();
|
48 |
|
|
}
|