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
;
16 import org
.eclipse
.jface
.viewers
.IStructuredSelection
;
17 import org
.eclipse
.ui
.IWorkbench
;
19 import eu
.etaxonomy
.cdm
.io
.jaxb
.JaxbExportConfigurator
;
20 import eu
.etaxonomy
.taxeditor
.store
.CdmStore
;
23 * <p>JaxbExportWizard class.</p>
29 public class JaxbExportWizard
extends AbstractExportWizard
<JaxbExportConfigurator
> {
31 private ExportToFileDestinationWizardPage page
;
33 private JaxbExportConfigurator configurator
;
36 * @see org.eclipse.ui.IWorkbenchWizard#init(org.eclipse.ui.IWorkbench, org.eclipse.jface.viewers.IStructuredSelection)
39 public void init(IWorkbench workbench
, IStructuredSelection selection
) {
40 this.setWindowTitle("JAXB Export");
41 this.configurator
= CdmStore
.getExportManager().JaxbConfigurator();
45 * @see org.eclipse.jface.wizard.Wizard#performFinish()
49 public boolean performFinish() {
50 boolean performFinish
= false;
52 File savePath
= new File(page
.getFolderText() + File
.separator
+ page
.getExportFileName());
53 urlString
= savePath
.toURI();
54 //orig: urlString = new URI(page.getFolderText() + File.separator + page.getExportFileName());
55 configurator
.setDestination(urlString
);
56 CdmStore
.getExportManager().run(configurator
);
62 * @see org.eclipse.jface.wizard.Wizard#addPages()
66 public void addPages() {
69 page
= ExportToFileDestinationWizardPage
.Jaxb();
74 * @see eu.etaxonomy.taxeditor.io.AbstractExportWizard#getConfigurator()
78 public JaxbExportConfigurator
getConfigurator() {