-// $Id$
/**
* Copyright (C) 2007 EDIT
-* European Distributed Institute of Taxonomy
+* European Distributed Institute of Taxonomy
* http://www.e-taxonomy.eu
-*
+*
* The contents of this file are subject to the Mozilla Public License Version 1.1
* See LICENSE.TXT at the top of this package for the full license terms.
*/
package eu.etaxonomy.taxeditor.ui.section.description;
-import org.apache.log4j.Logger;
import org.eclipse.jface.viewers.ISelectionProvider;
import eu.etaxonomy.cdm.api.conversation.ConversationHolder;
import eu.etaxonomy.cdm.model.description.TaxonDescription;
import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory;
import eu.etaxonomy.taxeditor.ui.element.ICdmFormElement;
-import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory.DetailType;
+import eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailElement;
import eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailSection;
/**
* @version 1.0
*/
public class NaturalLanguageSection extends AbstractCdmDetailSection<TaxonDescription> {
-
-
- private static final Logger logger = Logger
- .getLogger(NaturalLanguageSection.class);
/**
* <p>Constructor for NaturalLanguageSection.</p>
ISelectionProvider selectionProvider, int style) {
super(formFactory, conversation, parentElement, selectionProvider, style);
}
-
+
/* (non-Javadoc)
- * @see eu.etaxonomy.taxeditor.section.AbstractCdmDetailSection#getDetailType()
+ * @see eu.etaxonomy.taxeditor.section.AbstractCdmDetailSection#getHeading()
*/
/** {@inheritDoc} */
@Override
- protected DetailType getDetailType() {
- return DetailType.NATURAL_LANGUAGE;
+ public String getHeading() {
+ return "Natural Language Description";
}
/* (non-Javadoc)
- * @see eu.etaxonomy.taxeditor.section.AbstractCdmDetailSection#getHeading()
+ * @see eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailSection#createCdmDetailElement(eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailSection, int)
*/
- /** {@inheritDoc} */
@Override
- public String getHeading() {
- return "Natural Language Description";
+ protected AbstractCdmDetailElement<TaxonDescription> createCdmDetailElement(AbstractCdmDetailSection<TaxonDescription> parentElement, int style) {
+ return formFactory.createNaturalLanguageDetailElement(parentElement);
}
}