Project

General

Profile

Download (1.38 KB) Statistics
| Branch: | Tag: | Revision:
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.model.term.TermTree;
14
import eu.etaxonomy.cdm.persistence.dto.TermTreeDto;
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
 * @author pplitzner
22
 * @since Dec 21, 2017
23
 */
24
public class TermTreeDetailSection extends AbstractCdmDetailSection<TermTreeDto> {
25

    
26
	public TermTreeDetailSection(CdmFormFactory formFactory,
27
	        ICdmFormElement parentElement,
28
			ISelectionProvider selectionProvider, int style) {
29
		super(formFactory, parentElement, selectionProvider, style);
30
	}
31

    
32
	@Override
33
	public String getHeading() {
34
		return TermTree.class.getSimpleName();
35
	}
36

    
37
    @Override
38
    protected AbstractCdmDetailElement<TermTreeDto> createCdmDetailElement(AbstractCdmDetailSection<TermTreeDto> parentElement,
39
            int style) {
40
        return formFactory.createFeatureTreeDetailElement(parentElement, style);
41
    }
42
}
(27-27/28)