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
;
13 import org
.apache
.log4j
.Logger
;
14 import org
.eclipse
.core
.runtime
.IProgressMonitor
;
15 import org
.eclipse
.core
.runtime
.IStatus
;
16 import org
.eclipse
.core
.runtime
.Status
;
17 import org
.eclipse
.core
.runtime
.jobs
.Job
;
18 import org
.eclipse
.jface
.wizard
.Wizard
;
19 import org
.eclipse
.ui
.IExportWizard
;
21 import eu
.etaxonomy
.cdm
.io
.common
.CdmDefaultExport
;
22 import eu
.etaxonomy
.cdm
.io
.common
.IExportConfigurator
;
29 public abstract class AbstractExportWizard
extends Wizard
implements IExportWizard
{
30 private static final Logger logger
= Logger
31 .getLogger(AbstractExportWizard
.class);
33 private CdmDefaultExport export
;
35 public boolean export(final IExportConfigurator configurator
){
36 export
= new CdmDefaultExport();
38 Job exportJob
= new Job("Export"){
40 protected IStatus
run(IProgressMonitor monitor
) {
41 return export
.invoke(configurator
) ? Status
.OK_STATUS
: Status
.CANCEL_STATUS
;