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
.IImportWizard
;
17 import org
.eclipse
.ui
.IWorkbench
;
19 import eu
.etaxonomy
.cdm
.io
.reference
.endnote
.in
.EndnoteImportConfigurator
;
20 import eu
.etaxonomy
.taxeditor
.store
.CdmStore
;
23 * <p>EndnoteImportWizard class.</p>
26 * @created Sep 18, 2009
29 public class EndnoteImportWizard
extends AbstractImportWizard
<EndnoteImportConfigurator
> implements IImportWizard
{
31 private EndnoteImportConfigurator configurator
;
33 private ImportFromFileDataSourceWizardPage dataSourcePage
;
36 * @see org.eclipse.jface.wizard.Wizard#performFinish()
40 public boolean performFinish() {
42 File file
= dataSourcePage
.getFile();
43 configurator
.setSource(file
.toURI());
45 CdmStore
.getImportManager().run(configurator
);
51 * @see eu.etaxonomy.taxeditor.io.AbstractImportWizard#addPages()
55 public void addPages() {
58 dataSourcePage
= ImportFromFileDataSourceWizardPage
.XML();
59 addPage(dataSourcePage
);
63 * @see org.eclipse.ui.IWorkbenchWizard#init(org.eclipse.ui.IWorkbench, org.eclipse.jface.viewers.IStructuredSelection)
66 public void init(IWorkbench workbench
, IStructuredSelection selection
) {
67 super.init(workbench
, selection
);
68 configurator
= CdmStore
.getImportManager().EndnoteConfigurator();
72 * @see eu.etaxonomy.taxeditor.io.AbstractImportWizard#getConfigurator()
76 public EndnoteImportConfigurator
getConfigurator() {