- set CdmFormFactory.createTermComboElement() to deprecated
[taxeditor.git] / eu.etaxonomy.taxeditor.store / src / main / java / eu / etaxonomy / taxeditor / ui / section / name / NameTypeDesignationElement.java
index 6d4c33854f93d5e7efa40c4ab40298dd14d2429b..bacf0fd933146bfb7bd5c13a91d57ac6fc8dc075 100644 (file)
@@ -1,9 +1,9 @@
 // $Id$
 /**
  * Copyright (C) 2007 EDIT
- * European Distributed Institute of Taxonomy 
+ * European Distributed Institute of Taxonomy
  * http://www.e-taxonomy.eu
- * 
+ *
  * The contents of this file are subject to the Mozilla Public License Version 1.1
  * See LICENSE.TXT at the top of this package for the full license terms.
  */
@@ -13,6 +13,7 @@ package eu.etaxonomy.taxeditor.ui.section.name;
 import org.eclipse.swt.events.SelectionListener;
 
 import eu.etaxonomy.cdm.hibernate.HibernateProxyHelper;
+import eu.etaxonomy.cdm.model.common.TermType;
 import eu.etaxonomy.cdm.model.name.NameTypeDesignation;
 import eu.etaxonomy.cdm.model.name.NameTypeDesignationStatus;
 import eu.etaxonomy.cdm.model.name.TaxonNameBase;
@@ -27,7 +28,7 @@ import eu.etaxonomy.taxeditor.ui.selection.EntitySelectionElement;
  * <p>
  * NameTypeDesignationElement class.
  * </p>
- * 
+ *
  * @author n.hoffmann
  * @created May 17, 2010
  * @version 1.0
@@ -44,7 +45,7 @@ public class NameTypeDesignationElement extends
         * <p>
         * Constructor for NameTypeDesignationElement.
         * </p>
-        * 
+        *
         * @param formFactory
         *            a {@link eu.etaxonomy.taxeditor.ui.element.CdmFormFactory}
         *            object.
@@ -77,8 +78,7 @@ public class NameTypeDesignationElement extends
                                .createSelectionElement(TaxonNameBase.class,
                                                getConversationHolder(), formElement, "Name", null,
                                                EntitySelectionElement.ALL, style);
-               combo_typeStatus = formFactory.createTermComboElement(
-                               NameTypeDesignationStatus.class, formElement,
+               combo_typeStatus = formFactory.createDefinedTermComboElement(TermType.NameTypeDesignationStatus, formElement,
                                                "Designation Status", null, style);
 
                super.createControls(formElement, style);