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
.core
.runtime
.jobs
.Job
;
15 import org
.eclipse
.jface
.viewers
.IStructuredSelection
;
16 import org
.eclipse
.ui
.IWorkbench
;
17 import org
.eclipse
.ui
.progress
.IProgressConstants
;
19 import eu
.etaxonomy
.cdm
.io
.sdd
.out
.SDDExportConfigurator
;
20 import eu
.etaxonomy
.taxeditor
.store
.CdmStore
;
23 * <p>SddExportWizard class.</p>
26 * @created Jun 16, 2010
29 public class SddExportWizard
extends AbstractExportWizard
<SDDExportConfigurator
> {
31 private ExportToFileDestinationWizardPage page
;
33 private SDDExportConfigurator configurator
;
36 * @see eu.etaxonomy.taxeditor.io.wizard.AbstractExportWizard#getConfigurator()
40 public SDDExportConfigurator
getConfigurator() {
45 * @see org.eclipse.jface.wizard.Wizard#performFinish()
49 public boolean performFinish() {
50 File file
= new File(page
.getFolderText() + File
.separator
+ page
.getExportFileName());
52 Job job
= CdmStore
.getExportManager().createIOServiceJob(configurator
, file
);
54 job
.setProperty(IProgressConstants
.KEEP_PROPERTY
, true);
64 * @see eu.etaxonomy.taxeditor.io.wizard.AbstractExportWizard#addPages()
68 public void addPages() {
71 page
= ExportToFileDestinationWizardPage
.Sdd();
76 * @see org.eclipse.ui.IWorkbenchWizard#init(org.eclipse.ui.IWorkbench, org.eclipse.jface.viewers.IStructuredSelection)
80 public void init(IWorkbench workbench
, IStructuredSelection selection
) {
81 this.setWindowTitle("SDD Export");
82 this.configurator
= CdmStore
.getExportManager().SddConfigurator();