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
;
23 * TcsExportWizard class.
30 public class TcsExportWizard
extends
31 AbstractExportWizard
<TcsXmlExportConfigurator
> {
32 private TcsXmlExportConfigurator configurator
;
33 private ExportToFileDestinationWizardPage page
;
38 * @see org.eclipse.jface.wizard.Wizard#performFinish()
42 public boolean performFinish() {
43 String urlString
= page
.getFolderText() + File
.separator
44 + page
.getExportFileName();
46 configurator
.setDestination(new File(urlString
));
48 CdmStore
.getExportManager().run(configurator
);
56 * @see org.eclipse.ui.IWorkbenchWizard#init(org.eclipse.ui.IWorkbench,
57 * org.eclipse.jface.viewers.IStructuredSelection)
60 public void init(IWorkbench workbench
, IStructuredSelection selection
) {
61 configurator
= TcsXmlExportConfigurator
.NewInstance(null, null);
67 * @see eu.etaxonomy.taxeditor.io.AbstractExportWizard#getConfigurator()
71 public TcsXmlExportConfigurator
getConfigurator() {
78 * @see eu.etaxonomy.taxeditor.io.AbstractExportWizard#addPages()
82 public void addPages() {
85 page
= ExportToFileDestinationWizardPage
.Tcs();