-// $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;
* <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;
* <p>
* Constructor for NomenclaturalReferenceDetailElement.
* </p>
- *
+ *
* @param cdmFormFactory
* a {@link eu.etaxonomy.taxeditor.ui.element.CdmFormFactory}
* object.
/** {@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);