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
.taxon
;
13 import org
.eclipse
.jface
.viewers
.ISelectionProvider
;
15 import eu
.etaxonomy
.cdm
.api
.conversation
.ConversationHolder
;
16 import eu
.etaxonomy
.cdm
.model
.taxon
.TaxonBase
;
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
;
23 * <p>TaxonBaseDetailSection class.</p>
26 * @created Nov 4, 2009
29 public class TaxonBaseDetailSection
extends AbstractCdmDetailSection
<TaxonBase
> {
32 * <p>Constructor for TaxonBaseDetailSection.</p>
34 * @param parentElement a {@link eu.etaxonomy.taxeditor.ui.element.ICdmFormElement} object.
36 * @param cdmFormFactory a {@link eu.etaxonomy.taxeditor.ui.element.CdmFormFactory} object.
37 * @param conversation a {@link eu.etaxonomy.cdm.api.conversation.ConversationHolder} object.
38 * @param selectionProvider a {@link org.eclipse.jface.viewers.ISelectionProvider} object.
40 public TaxonBaseDetailSection(CdmFormFactory cdmFormFactory
, ConversationHolder conversation
, ICdmFormElement parentElement
, ISelectionProvider selectionProvider
, int style
) {
41 super(cdmFormFactory
, conversation
, parentElement
, selectionProvider
, style
);
46 public String
getHeading() {
47 return getEntity() != null ?
getEntity().getClass().getSimpleName() : "TaxonBase";
51 * @see eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailSection#createCdmDetailElement(eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailSection, int)
54 protected AbstractCdmDetailElement
<TaxonBase
> createCdmDetailElement(AbstractCdmDetailSection
<TaxonBase
> parentElement
, int style
) {
55 return formFactory
.createTaxonBaseDetailElement(parentElement
, style
);