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
.FeatureState
;
14 import eu
.etaxonomy
.cdm
.persistence
.dto
.TermNodeDto
;
15 import eu
.etaxonomy
.taxeditor
.ui
.element
.CdmFormFactory
;
22 public class FeatureStateWizard
extends Wizard
{
24 private static final String CREATE_FEATURE_STATE
= "Create Feature State";
25 private FeatureStateWizardPage page
;
26 private CdmFormFactory formFactory
;
27 private TermNodeDto termNode
;
29 public FeatureStateWizard(TermNodeDto termNode
, CdmFormFactory formFactory
) {
31 this.formFactory
= formFactory
;
32 this.termNode
= termNode
;
33 setWindowTitle(CREATE_FEATURE_STATE
);
37 public void addPages() {
38 page
= new FeatureStateWizardPage(CREATE_FEATURE_STATE
, termNode
, formFactory
);
43 public boolean performFinish() {
44 return page
.isPageComplete();
47 FeatureState
getFeatureState(){
48 return page
.getFeatureState();