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
.io
.tcsxml
.out
.TcsXmlExportConfigurator
;
19 import eu
.etaxonomy
.taxeditor
.store
.CdmStore
;
22 * <p>TcsExportWizard class.</p>
28 public class TcsExportWizard
extends AbstractExportWizard
<TcsXmlExportConfigurator
> {
29 private static final String TCS_EXPORT
= "TCS_EXPORT";
30 private TcsXmlExportConfigurator configurator
;
31 private ExportToFileDestinationWizardPage page
;
34 * @see org.eclipse.jface.wizard.Wizard#performFinish()
38 public boolean performFinish() {
39 String urlString
= page
.getFolderText() + File
.separator
+ page
.getExportFileName();
41 configurator
.setDestination(new File(urlString
));
43 CdmStore
.getExportHandler().run(configurator
);
49 * @see org.eclipse.ui.IWorkbenchWizard#init(org.eclipse.ui.IWorkbench, org.eclipse.jface.viewers.IStructuredSelection)
52 public void init(IWorkbench workbench
, IStructuredSelection selection
) {
53 configurator
= TcsXmlExportConfigurator
.NewInstance(null, null);
57 * @see eu.etaxonomy.taxeditor.io.AbstractExportWizard#getConfigurator()
61 public TcsXmlExportConfigurator
getConfigurator() {
66 * @see eu.etaxonomy.taxeditor.io.AbstractExportWizard#addPages()
70 public void addPages() {
73 page
= ExportToFileDestinationWizardPage
.Tcs();