Updated version in pom / project files to taxeditor version : 5.16.0 and cdmlib versi...
[taxeditor.git] / eu.etaxonomy.taxeditor.store / src / main / java / eu / etaxonomy / taxeditor / ui / section / description / CommonNameSourceElement.java
1 /**
2 * Copyright (C) 2018 EDIT
3 * European Distributed Institute of Taxonomy
4 * http://www.e-taxonomy.eu
5 *
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.
8 */
9 package eu.etaxonomy.taxeditor.ui.section.description;
10
11 import org.eclipse.swt.events.SelectionListener;
12
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;
17
18 /**
19 * @author k.luther
20 * @since 17.09.2018
21 *
22 */
23 public class CommonNameSourceElement extends DescriptionElementSourceElement {
24
25 /**
26 * @param cdmFormFactory
27 * @param formElement
28 * @param element
29 * @param removeListener
30 * @param style
31 */
32 public CommonNameSourceElement(CdmFormFactory cdmFormFactory, AbstractFormSection<?> formElement,
33 DescriptionElementSource element, SelectionListener removeListener, int style) {
34 super(cdmFormFactory, formElement, element, removeListener, style, true);
35
36 }
37
38 @Override
39 public void createControls(ICdmFormElement formElement, int style) {
40 this.isCommonNameReference = true;
41 super.createControls(formElement, style);
42
43 }
44
45 }