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
.dwca
.out
.DwcaTaxExportConfigurator
;
19 import eu
.etaxonomy
.taxeditor
.store
.CdmStore
;
23 * @created May 2, 2011
26 public class DarwinCoreArchiveExportWizard
extends
27 AbstractExportWizard
<DwcaTaxExportConfigurator
> {
29 private DwcaTaxExportConfigurator configurator
;
30 private ExportToFileDestinationWizardPage page
;
35 * @see org.eclipse.ui.IWorkbenchWizard#init(org.eclipse.ui.IWorkbench,
36 * org.eclipse.jface.viewers.IStructuredSelection)
39 public void init(IWorkbench workbench
, IStructuredSelection selection
) {
40 configurator
= DwcaTaxExportConfigurator
.NewInstance(null, null, null);
47 * eu.etaxonomy.taxeditor.io.wizard.AbstractExportWizard#getConfigurator()
50 public DwcaTaxExportConfigurator
getConfigurator() {
57 * @see org.eclipse.jface.wizard.Wizard#performFinish()
60 public boolean performFinish() {
61 String urlString
= page
.getFolderText() + File
.separator
62 + page
.getExportFileName();
64 configurator
.setDestination(new File(urlString
));
66 CdmStore
.getExportManager().run(configurator
);
74 * @see eu.etaxonomy.taxeditor.io.wizard.AbstractExportWizard#addPages()
77 public void addPages() {
80 page
= ExportToFileDestinationWizardPage
.Dwca();