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.
9 package eu
.etaxonomy
.taxeditor
.ui
.section
.occurrence
.dna
;
11 import org
.eclipse
.jface
.viewers
.ISelectionProvider
;
13 import eu
.etaxonomy
.cdm
.api
.conversation
.ConversationHolder
;
14 import eu
.etaxonomy
.cdm
.model
.occurrence
.DerivedUnit
;
15 import eu
.etaxonomy
.taxeditor
.ui
.element
.CdmFormFactory
;
16 import eu
.etaxonomy
.taxeditor
.ui
.element
.ICdmFormElement
;
17 import eu
.etaxonomy
.taxeditor
.ui
.section
.AbstractCdmDetailSection
;
21 * @created May 11, 2011
23 public class SampleDesignationDetailSection
extends AbstractCdmDetailSection
<DerivedUnit
> {
25 public SampleDesignationDetailSection(CdmFormFactory formFactory
,
26 ConversationHolder conversation
, ICdmFormElement parentElement
,
27 ISelectionProvider selectionProvider
, int style
) {
28 super(formFactory
, conversation
, parentElement
, selectionProvider
, style
);
32 public String
getHeading() {
33 return "Sample Designations";
37 protected void setSectionTitle() {
38 this.setText(getHeading());
39 setTextClient(createToolbar());
43 protected SampleDesignationDetailElement
createCdmDetailElement(AbstractCdmDetailSection
<DerivedUnit
> parentElement
, int style
) {
44 return formFactory
.createSampleDesignationDetailElement(parentElement
);