Merge branch 'release/5.18.0'
[taxeditor.git] / eu.etaxonomy.taxeditor.store / src / main / java / eu / etaxonomy / taxeditor / ui / section / feature / FeatureTreeDetailSection.java
1 /**
2 * Copyright (C) 2009 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 package eu.etaxonomy.taxeditor.ui.section.feature;
10
11 import org.eclipse.jface.viewers.ISelectionProvider;
12
13 import eu.etaxonomy.cdm.api.conversation.ConversationHolder;
14 import eu.etaxonomy.cdm.model.term.TermTree;
15 import eu.etaxonomy.cdm.persistence.dto.TermTreeDto;
16 import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory;
17 import eu.etaxonomy.taxeditor.ui.element.ICdmFormElement;
18 import eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailElement;
19 import eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailSection;
20
21 /**
22 *
23 * @author pplitzner
24 * @since Dec 21, 2017
25 *
26 */
27 public class FeatureTreeDetailSection extends AbstractCdmDetailSection<TermTreeDto> {
28
29 public FeatureTreeDetailSection(CdmFormFactory formFactory,
30 ConversationHolder conversation, ICdmFormElement parentElement,
31 ISelectionProvider selectionProvider, int style) {
32 super(formFactory, conversation, parentElement, selectionProvider, style);
33 }
34
35 @Override
36 public String getHeading() {
37 return TermTree.class.getSimpleName();
38 }
39
40 /**
41 * {@inheritDoc}
42 */
43 @Override
44 protected AbstractCdmDetailElement<TermTreeDto> createCdmDetailElement(AbstractCdmDetailSection<TermTreeDto> parentElement,
45 int style) {
46 return formFactory.createFeatureTreeDetailElement(parentElement, style);
47 }
48
49 }