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 java
.net
.URISyntaxException
;
17 import org
.eclipse
.jface
.viewers
.IStructuredSelection
;
18 import org
.eclipse
.ui
.IWorkbench
;
20 import eu
.etaxonomy
.cdm
.io
.jaxb
.JaxbExportConfigurator
;
21 import eu
.etaxonomy
.taxeditor
.store
.CdmStore
;
22 import eu
.etaxonomy
.taxeditor
.store
.StoreUtil
;
25 * <p>JaxbExportWizard class.</p>
31 public class JaxbExportWizard
extends AbstractExportWizard
<JaxbExportConfigurator
> {
33 private ExportToFileDestinationWizardPage page
;
35 private JaxbExportConfigurator configurator
;
38 * @see org.eclipse.ui.IWorkbenchWizard#init(org.eclipse.ui.IWorkbench, org.eclipse.jface.viewers.IStructuredSelection)
41 public void init(IWorkbench workbench
, IStructuredSelection selection
) {
42 this.setWindowTitle("JAXB Export");
43 this.configurator
= CdmStore
.getExportManager().JaxbConfigurator();
47 * @see org.eclipse.jface.wizard.Wizard#performFinish()
51 public boolean performFinish() {
52 boolean performFinish
= false;
54 File savePath
= new File(page
.getFolderText() + File
.separator
+ page
.getExportFileName());
55 urlString
= savePath
.toURI();
56 //orig: urlString = new URI(page.getFolderText() + File.separator + page.getExportFileName());
57 configurator
.setDestination(urlString
);
58 CdmStore
.getExportManager().run(configurator
);
64 * @see org.eclipse.jface.wizard.Wizard#addPages()
68 public void addPages() {
71 page
= ExportToFileDestinationWizardPage
.Jaxb();
76 * @see eu.etaxonomy.taxeditor.io.AbstractExportWizard#getConfigurator()
80 public JaxbExportConfigurator
getConfigurator() {