3 * Copyright (C) 2007 EDIT
4 * European Distributed Institute of Taxonomy
5 * http://www.e-taxonomy.eu
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.
11 package eu
.etaxonomy
.taxeditor
.ui
.section
.occurrence
;
13 import org
.eclipse
.jface
.viewers
.ISelectionProvider
;
15 import eu
.etaxonomy
.cdm
.api
.conversation
.ConversationHolder
;
16 import eu
.etaxonomy
.cdm
.api
.facade
.DerivedUnitFacade
;
17 import eu
.etaxonomy
.taxeditor
.ui
.element
.CdmFormFactory
;
18 import eu
.etaxonomy
.taxeditor
.ui
.element
.CdmFormFactory
.DetailType
;
19 import eu
.etaxonomy
.taxeditor
.ui
.element
.ICdmFormElement
;
20 import eu
.etaxonomy
.taxeditor
.ui
.section
.AbstractCdmDetailElement
;
21 import eu
.etaxonomy
.taxeditor
.ui
.section
.AbstractCdmDetailSection
;
24 * <p>DerivedUnitBaseDetailSection class.</p>
27 * @created Jun 24, 2010
30 public class DerivedUnitBaseDetailSection
extends AbstractCdmDetailSection
<DerivedUnitFacade
> implements IDerivedUnitFacadeDetailSection
{
33 * <p>Constructor for DerivedUnitBaseDetailSection.</p>
35 * @param formFactory a {@link eu.etaxonomy.taxeditor.ui.element.CdmFormFactory} object.
36 * @param conversation a {@link eu.etaxonomy.cdm.api.conversation.ConversationHolder} object.
37 * @param parentElement a {@link eu.etaxonomy.taxeditor.ui.element.ICdmFormElement} object.
38 * @param selectionProvider a {@link org.eclipse.jface.viewers.ISelectionProvider} object.
41 public DerivedUnitBaseDetailSection(CdmFormFactory formFactory
,
42 ConversationHolder conversation
, ICdmFormElement parentElement
,
43 ISelectionProvider selectionProvider
, int style
) {
44 super(formFactory
, conversation
, parentElement
, selectionProvider
, style
);
48 * @see eu.etaxonomy.taxeditor.section.AbstractCdmDetailSection#getDetailType()
52 protected DetailType
getDetailType() {
53 return DetailType
.DERIVED_UNIT
;
57 * @see eu.etaxonomy.taxeditor.section.AbstractCdmDetailSection#getHeading()
61 public String
getHeading() {
62 return "Specimen Details";
66 * @see eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailSection#createCdmDetailElement(eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailSection, int)
69 protected AbstractCdmDetailElement
<DerivedUnitFacade
> createCdmDetailElement(AbstractCdmDetailSection
<DerivedUnitFacade
> parentElement
, int style
) {
70 return formFactory
.createDerivedUnitBaseDetailElement(parentElement
);