2 * Copyright (C) 2007 EDIT
3 * European Distributed Institute of Taxonomy
4 * http://www.e-taxonomy.eu
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.
10 package eu
.etaxonomy
.taxeditor
.ui
.section
.occurrence
;
12 import org
.eclipse
.jface
.viewers
.ISelectionProvider
;
14 import eu
.etaxonomy
.cdm
.api
.conversation
.ConversationHolder
;
15 import eu
.etaxonomy
.cdm
.api
.facade
.DerivedUnitFacade
;
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
;
23 * @created Dec 16, 2010
26 public class DerivedUnitGeneralDetailSection
extends AbstractCdmDetailSection
<DerivedUnitFacade
> implements IDerivedUnitFacadeDetailSection
{
28 //TODO for DerivateEditor do not use facade anymore to avoid this special case handling #4539
29 private DerivedUnitGeneralDetailElement derivedUnitGeneralDetailElement
;
34 * @param parentElement
35 * @param selectionProvider
38 public DerivedUnitGeneralDetailSection(CdmFormFactory formFactory
,
39 ConversationHolder conversation
, ICdmFormElement parentElement
,
40 ISelectionProvider selectionProvider
, int style
) {
41 super(formFactory
, conversation
, parentElement
, selectionProvider
, style
);
46 * @see eu.etaxonomy.taxeditor.section.AbstractCdmDetailSection#getHeading()
49 public String
getHeading() {
54 * @see eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailSection#createCdmDetailElement(eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailSection, int)
57 protected AbstractCdmDetailElement
<DerivedUnitFacade
> createCdmDetailElement(AbstractCdmDetailSection
<DerivedUnitFacade
> parentElement
, int style
) {
58 derivedUnitGeneralDetailElement
= formFactory
.createDerivedUnitGeneralDetailElement(parentElement
);
59 return derivedUnitGeneralDetailElement
;
62 public void setShowOnlyDerivedUnitData(boolean showOnlyDerivedUnitData
){
63 derivedUnitGeneralDetailElement
.setShowOnlyDerivedUnitData(showOnlyDerivedUnitData
);