2 * Copyright (C) 2007 EDIT
3 * European Distributed Institute of Taxonomy
4 * http://www.e-taxonomy.eu
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.
10 package eu
.etaxonomy
.taxeditor
.io
.wizard
;
14 import org
.eclipse
.jface
.viewers
.IStructuredSelection
;
15 import org
.eclipse
.ui
.IWorkbench
;
17 import eu
.etaxonomy
.cdm
.io
.tcsxml
.out
.TcsXmlExportConfigurator
;
18 import eu
.etaxonomy
.taxeditor
.store
.CdmStore
;
22 * TcsExportWizard class.
29 public class TcsExportWizard
extends
30 AbstractExportWizard
<TcsXmlExportConfigurator
> {
31 private TcsXmlExportConfigurator configurator
;
32 private ExportToFileDestinationWizardPage page
;
37 * @see org.eclipse.jface.wizard.Wizard#performFinish()
41 public boolean performFinish() {
42 String urlString
= page
.getFolderText() + File
.separator
43 + page
.getExportFileName();
45 configurator
.setDestination(new File(urlString
));
47 CdmStore
.getExportManager().run(configurator
);
55 * @see org.eclipse.ui.IWorkbenchWizard#init(org.eclipse.ui.IWorkbench,
56 * org.eclipse.jface.viewers.IStructuredSelection)
59 public void init(IWorkbench workbench
, IStructuredSelection selection
) {
60 configurator
= TcsXmlExportConfigurator
.NewInstance(null, null);
66 * @see eu.etaxonomy.taxeditor.io.AbstractExportWizard#getConfigurator()
70 public TcsXmlExportConfigurator
getConfigurator() {
77 * @see eu.etaxonomy.taxeditor.io.AbstractExportWizard#addPages()
81 public void addPages() {
84 page
= ExportToFileDestinationWizardPage
.Tcs();