Merge branch 'hotfix/5.45.1'
[taxeditor.git] / eu.etaxonomy.taxeditor.store / src / main / java / eu / etaxonomy / taxeditor / ui / section / occurrence / dna / DnaQualityDetailSection.java
1 /**
2 * Copyright (C) 2014 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.occurrence.dna;
10
11 import org.eclipse.jface.viewers.ISelectionProvider;
12
13 import eu.etaxonomy.cdm.model.molecular.DnaSample;
14 import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory;
15 import eu.etaxonomy.taxeditor.ui.element.ICdmFormElement;
16 import eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailElement;
17 import eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailSection;
18
19 /**
20 * @author pplitzner
21 * @date 05.03.2014
22 */
23 public class DnaQualityDetailSection extends AbstractCdmDetailSection<DnaSample> {
24
25 public DnaQualityDetailSection(CdmFormFactory formFactory,
26 ICdmFormElement parentElement,
27 ISelectionProvider selectionProvider, int style) {
28 super(formFactory, parentElement, selectionProvider, style);
29 }
30
31 @Override
32 public String getHeading() {
33 return "DNA Quality";
34 }
35
36 @Override
37 protected AbstractCdmDetailElement<DnaSample> createCdmDetailElement(AbstractCdmDetailSection<DnaSample> parentElement, int style) {
38 return formFactory.createDnaQualityDetailElement(parentElement);
39 }
40 }