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
|
package eu.etaxonomy.taxeditor.ui.section.occurrence.dna;
|
10
|
|
11
|
import org.eclipse.jface.viewers.ISelectionProvider;
|
12
|
|
13
|
import eu.etaxonomy.cdm.model.occurrence.DerivedUnit;
|
14
|
import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory;
|
15
|
import eu.etaxonomy.taxeditor.ui.element.ICdmFormElement;
|
16
|
import eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailSection;
|
17
|
|
18
|
/**
|
19
|
* @author n.hoffmann
|
20
|
* @created May 11, 2011
|
21
|
*/
|
22
|
public class SampleDesignationDetailSection extends AbstractCdmDetailSection<DerivedUnit> {
|
23
|
|
24
|
public SampleDesignationDetailSection(CdmFormFactory formFactory,
|
25
|
ICdmFormElement parentElement,
|
26
|
ISelectionProvider selectionProvider, int style) {
|
27
|
super(formFactory, parentElement, selectionProvider, style);
|
28
|
}
|
29
|
|
30
|
@Override
|
31
|
public String getHeading() {
|
32
|
return "Sample Designations";
|
33
|
}
|
34
|
|
35
|
@Override
|
36
|
protected void setSectionTitle() {
|
37
|
this.setText(getHeading());
|
38
|
setTextClient(createToolbar());
|
39
|
}
|
40
|
|
41
|
@Override
|
42
|
protected SampleDesignationDetailElement createCdmDetailElement(AbstractCdmDetailSection<DerivedUnit> parentElement, int style) {
|
43
|
return formFactory.createSampleDesignationDetailElement(parentElement);
|
44
|
}
|
45
|
}
|