2 * Copyright (C) 2018 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
.description
;
11 import org
.eclipse
.swt
.events
.SelectionListener
;
13 import eu
.etaxonomy
.cdm
.model
.description
.DescriptionElementSource
;
14 import eu
.etaxonomy
.taxeditor
.ui
.element
.AbstractFormSection
;
15 import eu
.etaxonomy
.taxeditor
.ui
.element
.CdmFormFactory
;
16 import eu
.etaxonomy
.taxeditor
.ui
.element
.ICdmFormElement
;
23 public class CommonNameSourceElement
extends DescriptionElementSourceElement
{
26 * @param cdmFormFactory
29 * @param removeListener
32 public CommonNameSourceElement(CdmFormFactory cdmFormFactory
, AbstractFormSection
<?
> formElement
,
33 DescriptionElementSource element
, SelectionListener removeListener
, int style
) {
34 super(cdmFormFactory
, formElement
, element
, removeListener
, style
, true);
39 public void createControls(ICdmFormElement formElement
, int style
) {
40 this.isCommonNameReference
= true;
41 super.createControls(formElement
, style
);