Project

General

Profile

Download (2.15 KB) Statistics
| Branch: | Tag: | Revision:
1
// $Id$
2
/**
3
* Copyright (C) 2007 EDIT
4
* European Distributed Institute of Taxonomy 
5
* http://www.e-taxonomy.eu
6
* 
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.
9
*/
10

    
11
package eu.etaxonomy.taxeditor.section.description;
12

    
13
import org.apache.log4j.Logger;
14
import org.eclipse.jface.viewers.ISelectionProvider;
15

    
16
import eu.etaxonomy.cdm.api.conversation.ConversationHolder;
17
import eu.etaxonomy.cdm.model.description.TaxonDescription;
18
import eu.etaxonomy.taxeditor.forms.CdmFormFactory;
19
import eu.etaxonomy.taxeditor.forms.CdmFormFactory.DetailType;
20
import eu.etaxonomy.taxeditor.forms.ICdmFormElement;
21
import eu.etaxonomy.taxeditor.section.AbstractCdmDetailSection;
22

    
23
/**
24
 * <p>NaturalLanguageSection class.</p>
25
 *
26
 * @author n.hoffmann
27
 * @created Sep 16, 2010
28
 * @version 1.0
29
 */
30
public class NaturalLanguageSection extends AbstractCdmDetailSection<TaxonDescription> {
31
	
32

    
33
	private static final Logger logger = Logger
34
			.getLogger(NaturalLanguageSection.class);
35

    
36
	/**
37
	 * <p>Constructor for NaturalLanguageSection.</p>
38
	 *
39
	 * @param formFactory a {@link eu.etaxonomy.taxeditor.forms.CdmFormFactory} object.
40
	 * @param conversation a {@link eu.etaxonomy.cdm.api.conversation.ConversationHolder} object.
41
	 * @param parentElement a {@link eu.etaxonomy.taxeditor.forms.ICdmFormElement} object.
42
	 * @param selectionProvider a {@link org.eclipse.jface.viewers.ISelectionProvider} object.
43
	 * @param style a int.
44
	 */
45
	public NaturalLanguageSection(CdmFormFactory formFactory,
46
			ConversationHolder conversation, ICdmFormElement parentElement,
47
			ISelectionProvider selectionProvider, int style) {
48
		super(formFactory, conversation, parentElement, selectionProvider, style);
49
	}
50
	
51
	/* (non-Javadoc)
52
	 * @see eu.etaxonomy.taxeditor.section.AbstractCdmDetailSection#getDetailType()
53
	 */
54
	/** {@inheritDoc} */
55
	@Override
56
	protected DetailType getDetailType() {
57
		return DetailType.NATURAL_LANGUAGE;
58
	}
59

    
60
	/* (non-Javadoc)
61
	 * @see eu.etaxonomy.taxeditor.section.AbstractCdmDetailSection#getHeading()
62
	 */
63
	/** {@inheritDoc} */
64
	@Override
65
	public String getHeading() {
66
		return "Natural Language Description";
67
	}
68
}
(18-18/24)