extract string constant
[taxeditor.git] / eu.etaxonomy.taxeditor.store / src / main / java / eu / etaxonomy / taxeditor / ui / section / feature / FeatureStateWizard.java
index 9e13ea0a7d55d97e208c747e25b5995d3d4b4cdb..047831607920cbf12d44efc79481685fa0da9081 100644 (file)
@@ -10,7 +10,9 @@ package eu.etaxonomy.taxeditor.ui.section.feature;
 
 import org.eclipse.jface.wizard.Wizard;
 
+import eu.etaxonomy.cdm.model.description.Feature;
 import eu.etaxonomy.cdm.model.description.FeatureState;
+import eu.etaxonomy.cdm.model.term.TermNode;
 import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory;
 
 /**
@@ -20,20 +22,23 @@ import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory;
  */
 public class FeatureStateWizard extends Wizard {
 
+    private static final String CREATE_FEATURE_STATE = "Create Feature State";
     private FeatureStateWizardPage page;
     private CdmFormFactory formFactory;
     private String comboLabel;
+    private TermNode<? extends Feature> termNode;
 
-    public FeatureStateWizard(CdmFormFactory formFactory, String comboLabel) {
+    public FeatureStateWizard(String comboLabel, TermNode<? extends Feature> termNode, CdmFormFactory formFactory) {
         super();
         this.formFactory = formFactory;
+        this.termNode = termNode;
         this.comboLabel = comboLabel;
-        setWindowTitle("Create Feature State");
+        setWindowTitle(CREATE_FEATURE_STATE);
     }
 
     @Override
     public void addPages() {
-        page = new FeatureStateWizardPage("Create Feature State", comboLabel, formFactory);
+        page = new FeatureStateWizardPage(CREATE_FEATURE_STATE, comboLabel, termNode, formFactory);
         addPage(page);
     }