3 * Copyright (C) 2007 EDIT
4 * European Distributed Institute of Taxonomy
5 * http://www.e-taxonomy.eu
7 * The contents of this file are subject to the Mozilla Public License Version 1.1
8 * See LICENSE.TXT at the top of this package for the full license terms.
11 package eu
.etaxonomy
.taxeditor
.ui
.section
.description
;
13 import org
.eclipse
.jface
.viewers
.ISelectionProvider
;
15 import eu
.etaxonomy
.cdm
.api
.conversation
.ConversationHolder
;
16 import eu
.etaxonomy
.cdm
.model
.description
.TaxonDescription
;
17 import eu
.etaxonomy
.taxeditor
.ui
.element
.CdmFormFactory
;
18 import eu
.etaxonomy
.taxeditor
.ui
.element
.ICdmFormElement
;
19 import eu
.etaxonomy
.taxeditor
.ui
.section
.AbstractCdmDetailElement
;
20 import eu
.etaxonomy
.taxeditor
.ui
.section
.AbstractCdmDetailSection
;
23 * <p>NaturalLanguageSection class.</p>
26 * @created Sep 16, 2010
29 public class NaturalLanguageSection
extends AbstractCdmDetailSection
<TaxonDescription
> {
32 * <p>Constructor for NaturalLanguageSection.</p>
34 * @param formFactory a {@link eu.etaxonomy.taxeditor.ui.element.CdmFormFactory} object.
35 * @param conversation a {@link eu.etaxonomy.cdm.api.conversation.ConversationHolder} object.
36 * @param parentElement a {@link eu.etaxonomy.taxeditor.ui.element.ICdmFormElement} object.
37 * @param selectionProvider a {@link org.eclipse.jface.viewers.ISelectionProvider} object.
40 public NaturalLanguageSection(CdmFormFactory formFactory
,
41 ConversationHolder conversation
, ICdmFormElement parentElement
,
42 ISelectionProvider selectionProvider
, int style
) {
43 super(formFactory
, conversation
, parentElement
, selectionProvider
, style
);
47 * @see eu.etaxonomy.taxeditor.section.AbstractCdmDetailSection#getHeading()
51 public String
getHeading() {
52 return "Natural Language Description";
56 * @see eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailSection#createCdmDetailElement(eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailSection, int)
59 protected AbstractCdmDetailElement
<TaxonDescription
> createCdmDetailElement(AbstractCdmDetailSection
<TaxonDescription
> parentElement
, int style
) {
60 return formFactory
.createNaturalLanguageDetailElement(parentElement
);