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.
9 package eu
.etaxonomy
.taxeditor
.io
.wizard
;
13 import org
.eclipse
.core
.runtime
.jobs
.Job
;
14 import org
.eclipse
.jface
.viewers
.IStructuredSelection
;
15 import org
.eclipse
.ui
.IWorkbench
;
16 import org
.eclipse
.ui
.progress
.IProgressConstants
;
18 import eu
.etaxonomy
.cdm
.io
.jaxb
.JaxbExportConfigurator
;
19 import eu
.etaxonomy
.taxeditor
.store
.CdmStore
;
22 * <p>JaxbExportWizard class.</p>
27 public class JaxbExportWizard
extends AbstractExportWizard
<JaxbExportConfigurator
> {
29 private ExportToFileDestinationWizardPage page
;
31 private JaxbExportConfigurator configurator
;
34 public void init(IWorkbench workbench
, IStructuredSelection selection
) {
35 this.setWindowTitle("JAXB Export");
36 this.configurator
= CdmStore
.getExportManager().JaxbConfigurator();
40 public boolean performFinish() {
41 boolean performFinish
= false;
43 File exportFile
= new File(page
.getFolderText() + File
.separator
+ page
.getExportFileName());
45 configurator
.setDestination(exportFile
);
48 Job job
= CdmStore
.getExportManager().createIOServiceJob(configurator
, exportFile
);
50 job
.setProperty(IProgressConstants
.KEEP_PROPERTY
, true);
60 public void addPages() {
63 page
= ExportToFileDestinationWizardPage
.Jaxb(configurator
);
68 public JaxbExportConfigurator
getConfigurator() {