2 * Copyright (C) 2007 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
.jface
.viewers
.ISelectionProvider
;
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
;
21 * @created Sep 16, 2010
23 public class NaturalLanguageSection
extends AbstractCdmDetailSection
<TaxonDescription
> {
26 * <p>Constructor for NaturalLanguageSection.</p>
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.
33 public NaturalLanguageSection(CdmFormFactory formFactory
,
34 ICdmFormElement parentElement
,
35 ISelectionProvider selectionProvider
, int style
) {
36 super(formFactory
, parentElement
, selectionProvider
, style
);
40 public String
getHeading() {
41 return "Natural Language Description";
45 protected AbstractCdmDetailElement
<TaxonDescription
> createCdmDetailElement(AbstractCdmDetailSection
<TaxonDescription
> parentElement
, int style
) {
46 return formFactory
.createNaturalLanguageDetailElement(parentElement
);