1
|
/**
|
2
|
* Copyright (C) 2017 EDIT
|
3
|
* European Distributed Institute of Taxonomy
|
4
|
* http://www.e-taxonomy.eu
|
5
|
*
|
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.
|
8
|
*/
|
9
|
package eu.etaxonomy.taxeditor.io.e4.out.owl;
|
10
|
|
11
|
import javax.inject.Inject;
|
12
|
import javax.inject.Named;
|
13
|
|
14
|
import org.eclipse.e4.core.contexts.IEclipseContext;
|
15
|
import org.eclipse.e4.core.di.annotations.Optional;
|
16
|
import org.eclipse.e4.ui.services.IServiceConstants;
|
17
|
import org.eclipse.jface.viewers.IStructuredSelection;
|
18
|
|
19
|
import eu.etaxonomy.cdm.io.descriptive.owl.out.StructureTreeOwlExportConfigurator;
|
20
|
import eu.etaxonomy.taxeditor.io.e4.out.AbstractExportWizardE4;
|
21
|
|
22
|
/**
|
23
|
*
|
24
|
* @author pplitzner
|
25
|
* @since May 23, 2019
|
26
|
*
|
27
|
*/
|
28
|
public class OwlTermExportWizard extends
|
29
|
AbstractExportWizardE4<StructureTreeOwlExportConfigurator> {
|
30
|
|
31
|
private StructureTreeOwlExportConfigurator configurator;
|
32
|
private OwlTermExportWizardPage owlTermExportWizardPage;
|
33
|
|
34
|
@Inject
|
35
|
public OwlTermExportWizard(IEclipseContext context,
|
36
|
@Optional@Named(IServiceConstants.ACTIVE_SELECTION)IStructuredSelection selection) {
|
37
|
super(context, selection);
|
38
|
}
|
39
|
|
40
|
@Override
|
41
|
public void init() {
|
42
|
configurator = StructureTreeOwlExportConfigurator.NewInstance();
|
43
|
}
|
44
|
|
45
|
@Override
|
46
|
public StructureTreeOwlExportConfigurator getConfigurator() {
|
47
|
return configurator;
|
48
|
}
|
49
|
|
50
|
@Override
|
51
|
public boolean performFinish() {
|
52
|
// CdmStore.getExportManager().runMoniteredOperation(configurator, urlString);
|
53
|
// PreferencesUtil.setStringValue("exportFolder", page.getFolderText());
|
54
|
return true;
|
55
|
}
|
56
|
|
57
|
@Override
|
58
|
public void addPages() {
|
59
|
owlTermExportWizardPage = new OwlTermExportWizardPage("OWL term export");
|
60
|
addPage(owlTermExportWizardPage);
|
61
|
}
|
62
|
|
63
|
}
|