Project

General

Profile

Download (1.45 KB) Statistics
| Branch: | Tag: | Revision:
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.Feature;
14
import eu.etaxonomy.cdm.model.description.FeatureState;
15
import eu.etaxonomy.cdm.model.term.TermNode;
16
import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory;
17

    
18
/**
19
 * @author pplitzner
20
 * @since Aug 16, 2019
21
 *
22
 */
23
public class FeatureStateWizard extends Wizard {
24

    
25
    private FeatureStateWizardPage page;
26
    private CdmFormFactory formFactory;
27
    private String comboLabel;
28
    private TermNode<? extends Feature> termNode;
29

    
30
    public FeatureStateWizard(String comboLabel, TermNode<? extends Feature> termNode, CdmFormFactory formFactory) {
31
        super();
32
        this.formFactory = formFactory;
33
        this.termNode = termNode;
34
        this.comboLabel = comboLabel;
35
        setWindowTitle("Create Feature State");
36
    }
37

    
38
    @Override
39
    public void addPages() {
40
        page = new FeatureStateWizardPage("Create Feature State", comboLabel, termNode, formFactory);
41
        addPage(page);
42
    }
43

    
44
    @Override
45
    public boolean performFinish() {
46
        return page.isPageComplete();
47
    }
48

    
49
    FeatureState getFeatureState(){
50
        return page.getFeatureState();
51
    }
52

    
53
}
(10-10/17)