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
;
25 * @created Dec 16, 2010
28 public class GeneralDetailSection
extends AbstractCdmDetailSection
<DerivedUnitFacade
> implements IDerivedUnitFacadeDetailSection
{
33 * @param parentElement
34 * @param selectionProvider
37 public GeneralDetailSection(CdmFormFactory formFactory
,
38 ConversationHolder conversation
, ICdmFormElement parentElement
,
39 ISelectionProvider selectionProvider
, int style
) {
40 super(formFactory
, conversation
, parentElement
, selectionProvider
, style
);
45 * @see eu.etaxonomy.taxeditor.section.AbstractCdmDetailSection#getDetailType()
48 protected DetailType
getDetailType() {
49 return DetailType
.DERIVED_UNIT_GENERAL
;
53 * @see eu.etaxonomy.taxeditor.section.AbstractCdmDetailSection#getHeading()
56 public String
getHeading() {
61 * @see eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailSection#createCdmDetailElement(eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailSection, int)
64 protected AbstractCdmDetailElement
<DerivedUnitFacade
> createCdmDetailElement(AbstractCdmDetailSection
<DerivedUnitFacade
> parentElement
, int style
) {
65 return formFactory
.createGeneralDetailElement(parentElement
);