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
.ICdmFormElement
;
19 import eu
.etaxonomy
.taxeditor
.ui
.section
.AbstractCdmDetailElement
;
20 import eu
.etaxonomy
.taxeditor
.ui
.section
.AbstractCdmDetailSection
;
24 * @created Dec 16, 2010
27 public class DerivedUnitGeneralDetailSection
extends AbstractCdmDetailSection
<DerivedUnitFacade
> implements IDerivedUnitFacadeDetailSection
{
29 //TODO for DerivateEditor do not use facade anymore to avoid this special case handling #4539
30 private DerivedUnitGeneralDetailElement derivedUnitGeneralDetailElement
;
35 * @param parentElement
36 * @param selectionProvider
39 public DerivedUnitGeneralDetailSection(CdmFormFactory formFactory
,
40 ConversationHolder conversation
, ICdmFormElement parentElement
,
41 ISelectionProvider selectionProvider
, int style
) {
42 super(formFactory
, conversation
, parentElement
, selectionProvider
, style
);
47 * @see eu.etaxonomy.taxeditor.section.AbstractCdmDetailSection#getHeading()
50 public String
getHeading() {
55 * @see eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailSection#createCdmDetailElement(eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailSection, int)
58 protected AbstractCdmDetailElement
<DerivedUnitFacade
> createCdmDetailElement(AbstractCdmDetailSection
<DerivedUnitFacade
> parentElement
, int style
) {
59 derivedUnitGeneralDetailElement
= formFactory
.createDerivedUnitGeneralDetailElement(parentElement
);
60 return derivedUnitGeneralDetailElement
;
63 public void setShowOnlyDerivedUnitData(boolean showOnlyDerivedUnitData
){
64 derivedUnitGeneralDetailElement
.setShowOnlyDerivedUnitData(showOnlyDerivedUnitData
);