revert ZOnedDateTime to joda.DateTime
[taxeditor.git] / eu.etaxonomy.taxeditor.store / src / main / java / eu / etaxonomy / taxeditor / ui / section / reference / NomenclaturalReferenceDetailElement.java
index b97620569ea308eaea814b2ac03ed11e45ec1e73..5615546e916486d07423f494cf909bd490e77157 100644 (file)
@@ -1,19 +1,18 @@
-// $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.
  */
 
 package eu.etaxonomy.taxeditor.ui.section.reference;
 
-import eu.etaxonomy.cdm.model.name.TaxonNameBase;
+import eu.etaxonomy.cdm.model.name.TaxonName;
 import eu.etaxonomy.cdm.model.reference.Reference;
-import eu.etaxonomy.taxeditor.ui.campanula.compatibility.ICdmFormElement;
 import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory;
+import eu.etaxonomy.taxeditor.ui.element.ICdmFormElement;
 import eu.etaxonomy.taxeditor.ui.element.TextWithLabelElement;
 import eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailElement;
 import eu.etaxonomy.taxeditor.ui.selection.EntitySelectionElement;
@@ -22,13 +21,12 @@ import eu.etaxonomy.taxeditor.ui.selection.EntitySelectionElement;
  * <p>
  * NomenclaturalReferenceDetailElement class.
  * </p>
- * 
+ *
  * @author n.hoffmann
  * @created Mar 12, 2010
- * @version 1.0
  */
 public class NomenclaturalReferenceDetailElement extends
-               AbstractCdmDetailElement<TaxonNameBase> {
+               AbstractCdmDetailElement<TaxonName> {
 
        private EntitySelectionElement<Reference> selection_nomenclaturalReference;
        private TextWithLabelElement text_referenceDetail;
@@ -37,7 +35,7 @@ public class NomenclaturalReferenceDetailElement extends
         * <p>
         * Constructor for NomenclaturalReferenceDetailElement.
         * </p>
-        * 
+        *
         * @param cdmFormFactory
         *            a {@link eu.etaxonomy.taxeditor.ui.element.CdmFormFactory}
         *            object.
@@ -55,9 +53,9 @@ public class NomenclaturalReferenceDetailElement extends
        /** {@inheritDoc} */
        @Override
        protected void createControls(ICdmFormElement formElement,
-                       TaxonNameBase entity, int style) {
+                       TaxonName entity, int style) {
                selection_nomenclaturalReference = formFactory
-                               .createSelectionElement(Reference.class,
+                               .createSelectionElementWithAbbreviatedTitle(Reference.class,
                                                getConversationHolder(), formElement, "Reference",
                                                (Reference) entity.getNomenclaturalReference(),
                                                EntitySelectionElement.ALL, style);