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.occurrence;
|
11
|
|
12
|
import org.eclipse.jface.viewers.ISelectionProvider;
|
13
|
|
14
|
import eu.etaxonomy.cdm.api.conversation.ConversationHolder;
|
15
|
import eu.etaxonomy.cdm.model.occurrence.SpecimenOrObservationBase;
|
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
|
* @author n.hoffmann
|
23
|
* @created Dec 16, 2010
|
24
|
* @version 1.0
|
25
|
*/
|
26
|
public class SpecimenHierarchyDetailSection extends AbstractCdmDetailSection<SpecimenOrObservationBase<?>> {
|
27
|
|
28
|
private SpecimenHierarchyDetailElement specimenHierarchyDetailElement;
|
29
|
|
30
|
/**
|
31
|
* @param formFactory
|
32
|
* @param conversation
|
33
|
* @param parentElement
|
34
|
* @param selectionProvider
|
35
|
* @param style
|
36
|
*/
|
37
|
public SpecimenHierarchyDetailSection(CdmFormFactory formFactory,
|
38
|
ConversationHolder conversation, ICdmFormElement parentElement,
|
39
|
ISelectionProvider selectionProvider, int style) {
|
40
|
super(formFactory, conversation, parentElement, selectionProvider, style);
|
41
|
}
|
42
|
|
43
|
|
44
|
/* (non-Javadoc)
|
45
|
* @see eu.etaxonomy.taxeditor.section.AbstractCdmDetailSection#getHeading()
|
46
|
*/
|
47
|
@Override
|
48
|
public String getHeading() {
|
49
|
return "Specimen Hierarchy";
|
50
|
}
|
51
|
|
52
|
/* (non-Javadoc)
|
53
|
* @see eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailSection#createCdmDetailElement(eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailSection, int)
|
54
|
*/
|
55
|
@Override
|
56
|
protected AbstractCdmDetailElement<SpecimenOrObservationBase<?>> createCdmDetailElement(AbstractCdmDetailSection<SpecimenOrObservationBase<?>> parentElement, int style) {
|
57
|
specimenHierarchyDetailElement = formFactory.createSpecimenHierarchyDetailElement(parentElement);
|
58
|
return specimenHierarchyDetailElement;
|
59
|
}
|
60
|
|
61
|
}
|