ref #8248 Implement OWL import wizard
[taxeditor.git] / eu.etaxonomy.taxeditor.store / src / main / java / eu / etaxonomy / taxeditor / io / e4 / in / owl / OwlImportConfiguratorWizardPage.java
1 /**
2 * Copyright (C) 2007 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
10 package eu.etaxonomy.taxeditor.io.e4.in.owl;
11
12 import javax.inject.Inject;
13
14 import org.eclipse.jface.wizard.WizardPage;
15 import org.eclipse.swt.SWT;
16 import org.eclipse.swt.layout.GridLayout;
17 import org.eclipse.swt.widgets.Composite;
18
19 import eu.etaxonomy.cdm.io.descriptive.owl.in.OwlImportConfigurator;
20
21 /**
22 *
23 * @author pplitzner
24 * @since Apr 25, 2019
25 *
26 */
27 public class OwlImportConfiguratorWizardPage extends WizardPage {
28
29 public static final String PAGE_NAME = "OwlImportConfiguratorWizardPage";
30
31 private OwlImportConfigurator configurator;
32
33 @Inject
34 public OwlImportConfiguratorWizardPage() {
35 super(PAGE_NAME);
36 setTitle("Configure import parameters");
37 setDescription("Tooltips will explain parameters in more detail");
38 }
39
40 @Override
41 public void createControl(Composite parent) {
42 final Composite composite = new Composite(parent, SWT.NULL);
43 GridLayout gridLayout = new GridLayout();
44 composite.setLayout(gridLayout);
45
46 setControl(composite);
47 }
48
49 public String createConfigString(){
50 return configurator.toString();
51 }
52
53 public void setConfigurator(OwlImportConfigurator configurator) {
54 this.configurator = configurator;
55 }
56
57 }