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
.jface
.viewers
.IStructuredSelection
;
15 import org
.eclipse
.ui
.IImportWizard
;
16 import org
.eclipse
.ui
.IWorkbench
;
18 import eu
.etaxonomy
.cdm
.io
.reference
.endnote
.in
.EndnoteImportConfigurator
;
19 import eu
.etaxonomy
.taxeditor
.store
.CdmStore
;
22 * <p>EndnoteImportWizard class.</p>
25 * @created Sep 18, 2009
28 public class EndnoteImportWizard
extends AbstractImportWizard
<EndnoteImportConfigurator
> implements IImportWizard
{
30 private EndnoteImportConfigurator configurator
;
32 private ImportFromFileDataSourceWizardPage dataSourcePage
;
35 * @see org.eclipse.jface.wizard.Wizard#performFinish()
39 public boolean performFinish() {
41 File file
= dataSourcePage
.getFile();
42 configurator
.setSource(file
.toURI());
44 CdmStore
.getImportManager().run(configurator
);
50 * @see eu.etaxonomy.taxeditor.io.AbstractImportWizard#addPages()
54 public void addPages() {
57 dataSourcePage
= ImportFromFileDataSourceWizardPage
.XML();
58 addPage(dataSourcePage
);
62 * @see org.eclipse.ui.IWorkbenchWizard#init(org.eclipse.ui.IWorkbench, org.eclipse.jface.viewers.IStructuredSelection)
65 public void init(IWorkbench workbench
, IStructuredSelection selection
) {
66 super.init(workbench
, selection
);
67 configurator
= CdmStore
.getImportManager().EndnoteConfigurator();
71 * @see eu.etaxonomy.taxeditor.io.AbstractImportWizard#getConfigurator()
75 public EndnoteImportConfigurator
getConfigurator() {