Merge branch 'hotfix/5.45.1'
[taxeditor.git] / eu.etaxonomy.taxeditor.store / src / main / java / eu / etaxonomy / taxeditor / ui / section / classification / TaxonNodeDetailSection.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
10 package eu.etaxonomy.taxeditor.ui.section.classification;
11
12 import org.eclipse.jface.viewers.ISelectionProvider;
13
14 import eu.etaxonomy.cdm.model.taxon.TaxonNode;
15 import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory;
16 import eu.etaxonomy.taxeditor.ui.element.ICdmFormElement;
17 import eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailElement;
18 import eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailSection;
19
20 /**
21 * <p>TaxonNodeDetailSection class.</p>
22 *
23 * @author n.hoffmann
24 * @created Sep 27, 2010
25 * @version 1.0
26 */
27 public class TaxonNodeDetailSection extends AbstractCdmDetailSection<TaxonNode> {
28
29 /**
30 * <p>Constructor for TaxonNodeDetailSection.</p>
31 *
32 * @param formFactory a {@link eu.etaxonomy.taxeditor.ui.element.CdmFormFactory} object.
33 * @param parentElement a {@link eu.etaxonomy.taxeditor.ui.element.ICdmFormElement} object.
34 * @param selectionProvider a {@link org.eclipse.jface.viewers.ISelectionProvider} object.
35 * @param style a int.
36 */
37 public TaxonNodeDetailSection(CdmFormFactory formFactory,
38 ICdmFormElement parentElement,
39 ISelectionProvider selectionProvider, int style) {
40 super(formFactory, parentElement, selectionProvider, style);
41 }
42
43 @Override
44 public String getHeading() {
45 return null;
46 }
47
48 /* (non-Javadoc)
49 * @see eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailSection#createCdmDetailElement(eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailSection, int)
50 */
51 @Override
52 protected AbstractCdmDetailElement createCdmDetailElement(AbstractCdmDetailSection<TaxonNode> parentElement, int style) {
53 //FIXME generic
54 return formFactory.createTaxonNodeDetailElement(parentElement, false);
55 }
56 }