2 * Copyright (C) 2019 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.
9 package eu
.etaxonomy
.taxeditor
.ui
.section
.feature
;
11 import org
.eclipse
.jface
.wizard
.Wizard
;
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
;
23 public class FeatureStateWizard
extends Wizard
{
25 private static final String CREATE_FEATURE_STATE
= "Create Feature State";
26 private FeatureStateWizardPage page
;
27 private CdmFormFactory formFactory
;
28 private TermNode
<?
extends Feature
> termNode
;
30 public FeatureStateWizard(TermNode
<?
extends Feature
> termNode
, CdmFormFactory formFactory
) {
32 this.formFactory
= formFactory
;
33 this.termNode
= termNode
;
34 setWindowTitle(CREATE_FEATURE_STATE
);
38 public void addPages() {
39 page
= new FeatureStateWizardPage(CREATE_FEATURE_STATE
, termNode
, formFactory
);
44 public boolean performFinish() {
45 return page
.isPageComplete();
48 FeatureState
getFeatureState(){
49 return page
.getFeatureState();