Merge branch 'hotfix/5.44.1'
[taxeditor.git] / eu.etaxonomy.taxeditor.store / src / main / java / eu / etaxonomy / taxeditor / ui / section / description / NaturalLanguageSection.java
1 /**
2 * Copyright (C) 2007 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.jface.viewers.ISelectionProvider;
12
13 import eu.etaxonomy.cdm.model.description.TaxonDescription;
14 import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory;
15 import eu.etaxonomy.taxeditor.ui.element.ICdmFormElement;
16 import eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailElement;
17 import eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailSection;
18
19 /**
20 * @author n.hoffmann
21 * @created Sep 16, 2010
22 */
23 public class NaturalLanguageSection extends AbstractCdmDetailSection<TaxonDescription> {
24
25 /**
26 * <p>Constructor for NaturalLanguageSection.</p>
27 *
28 * @param formFactory a {@link eu.etaxonomy.taxeditor.ui.element.CdmFormFactory} object.
29 * @param parentElement a {@link eu.etaxonomy.taxeditor.ui.element.ICdmFormElement} object.
30 * @param selectionProvider a {@link org.eclipse.jface.viewers.ISelectionProvider} object.
31 * @param style a int.
32 */
33 public NaturalLanguageSection(CdmFormFactory formFactory,
34 ICdmFormElement parentElement,
35 ISelectionProvider selectionProvider, int style) {
36 super(formFactory, parentElement, selectionProvider, style);
37 }
38
39 @Override
40 public String getHeading() {
41 return "Natural Language Description";
42 }
43
44 @Override
45 protected AbstractCdmDetailElement<TaxonDescription> createCdmDetailElement(AbstractCdmDetailSection<TaxonDescription> parentElement, int style) {
46 return formFactory.createNaturalLanguageDetailElement(parentElement);
47 }
48 }