1
|
// $Id$
|
2
|
/**
|
3
|
* Copyright (C) 2007 EDIT
|
4
|
* European Distributed Institute of Taxonomy
|
5
|
* http://www.e-taxonomy.eu
|
6
|
*
|
7
|
* The contents of this file are subject to the Mozilla Public License Version 1.1
|
8
|
* See LICENSE.TXT at the top of this package for the full license terms.
|
9
|
*/
|
10
|
|
11
|
package eu.etaxonomy.taxeditor.ui.section.occurrence;
|
12
|
|
13
|
import org.eclipse.jface.viewers.ISelectionProvider;
|
14
|
|
15
|
import eu.etaxonomy.cdm.api.conversation.ConversationHolder;
|
16
|
import eu.etaxonomy.cdm.api.facade.DerivedUnitFacade;
|
17
|
import eu.etaxonomy.taxeditor.ui.campanula.compatibility.ICdmFormElement;
|
18
|
import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory;
|
19
|
import eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailSection;
|
20
|
import eu.etaxonomy.taxeditor.ui.section.ICdmDetailElement;
|
21
|
|
22
|
/**
|
23
|
* @author n.hoffmann
|
24
|
* @created Dec 16, 2010
|
25
|
* @version 1.0
|
26
|
*/
|
27
|
public class GeneralDetailSection extends AbstractCdmDetailSection<DerivedUnitFacade> implements IDerivedUnitFacadeDetailSection{
|
28
|
|
29
|
/**
|
30
|
* @param formFactory
|
31
|
* @param conversation
|
32
|
* @param parentElement
|
33
|
* @param selectionProvider
|
34
|
* @param style
|
35
|
*/
|
36
|
public GeneralDetailSection(CdmFormFactory formFactory,
|
37
|
ConversationHolder conversation, ICdmFormElement parentElement,
|
38
|
ISelectionProvider selectionProvider, int style) {
|
39
|
super(formFactory, conversation, parentElement, selectionProvider, style);
|
40
|
}
|
41
|
|
42
|
|
43
|
/* (non-Javadoc)
|
44
|
* @see eu.etaxonomy.taxeditor.section.AbstractCdmDetailSection#getHeading()
|
45
|
*/
|
46
|
@Override
|
47
|
public String getHeading() {
|
48
|
return "General";
|
49
|
}
|
50
|
|
51
|
/* (non-Javadoc)
|
52
|
* @see eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailSection#createCdmDetailElement(eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailSection, int)
|
53
|
*/
|
54
|
@Override
|
55
|
protected ICdmDetailElement<DerivedUnitFacade> createCdmDetailElement(AbstractCdmDetailSection<DerivedUnitFacade> parentElement, int style) {
|
56
|
return formFactory.createFieldObservationGeneralElement(parentElement);
|
57
|
}
|
58
|
|
59
|
}
|