1
|
/**
|
2
|
* Copyright (C) 2019 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.ui.section.feature;
|
10
|
|
11
|
import org.eclipse.jface.wizard.Wizard;
|
12
|
|
13
|
import eu.etaxonomy.cdm.model.description.FeatureState;
|
14
|
import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory;
|
15
|
|
16
|
/**
|
17
|
* @author pplitzner
|
18
|
* @since Aug 16, 2019
|
19
|
*
|
20
|
*/
|
21
|
public class FeatureStateWizard extends Wizard {
|
22
|
|
23
|
private FeatureStateWizardPage page;
|
24
|
private CdmFormFactory formFactory;
|
25
|
private String comboLabel;
|
26
|
|
27
|
public FeatureStateWizard(CdmFormFactory formFactory, String comboLabel) {
|
28
|
super();
|
29
|
this.formFactory = formFactory;
|
30
|
this.comboLabel = comboLabel;
|
31
|
setWindowTitle("Create Feature State");
|
32
|
}
|
33
|
|
34
|
@Override
|
35
|
public void addPages() {
|
36
|
page = new FeatureStateWizardPage("Create Feature State", comboLabel, formFactory);
|
37
|
addPage(page);
|
38
|
}
|
39
|
|
40
|
@Override
|
41
|
public boolean performFinish() {
|
42
|
return page.isPageComplete();
|
43
|
}
|
44
|
|
45
|
FeatureState getFeatureState(){
|
46
|
return page.getFeatureState();
|
47
|
}
|
48
|
|
49
|
}
|