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
.jaxb
.JaxbExportConfigurator
;
19 import eu
.etaxonomy
.taxeditor
.store
.CdmStore
;
22 * <p>JaxbExportWizard class.</p>
28 public class JaxbExportWizard
extends AbstractExportWizard
<JaxbExportConfigurator
> {
30 private ExportToFileDestinationWizardPage page
;
32 private JaxbExportConfigurator configurator
;
35 * @see org.eclipse.ui.IWorkbenchWizard#init(org.eclipse.ui.IWorkbench, org.eclipse.jface.viewers.IStructuredSelection)
38 public void init(IWorkbench workbench
, IStructuredSelection selection
) {
39 this.setWindowTitle("JAXB Export");
40 this.configurator
= CdmStore
.getExportHandler().JaxbConfigurator();
44 * @see org.eclipse.jface.wizard.Wizard#performFinish()
48 public boolean performFinish() {
50 String urlString
= page
.getFolderText() + File
.separator
+ page
.getExportFileName();
52 configurator
.setDestination(urlString
);
54 CdmStore
.getExportHandler().run(configurator
);
60 * @see org.eclipse.jface.wizard.Wizard#addPages()
64 public void addPages() {
67 page
= ExportToFileDestinationWizardPage
.Jaxb();
72 * @see eu.etaxonomy.taxeditor.io.AbstractExportWizard#getConfigurator()
76 public JaxbExportConfigurator
getConfigurator() {