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
.section
.taxon
;
13 import org
.apache
.log4j
.Logger
;
14 import org
.eclipse
.jface
.viewers
.ISelectionProvider
;
16 import eu
.etaxonomy
.cdm
.api
.conversation
.ConversationHolder
;
17 import eu
.etaxonomy
.cdm
.hibernate
.HibernateProxyHelper
;
18 import eu
.etaxonomy
.cdm
.model
.taxon
.TaxonBase
;
19 import eu
.etaxonomy
.taxeditor
.forms
.CdmFormFactory
;
20 import eu
.etaxonomy
.taxeditor
.forms
.ICdmFormElement
;
21 import eu
.etaxonomy
.taxeditor
.forms
.CdmFormFactory
.DetailType
;
22 import eu
.etaxonomy
.taxeditor
.section
.AbstractCdmDetailSection
;
23 import eu
.etaxonomy
.taxeditor
.section
.ITaxonDetailSection
;
26 * <p>TaxonBaseDetailSection class.</p>
29 * @created Nov 4, 2009
32 public class TaxonBaseDetailSection
extends AbstractCdmDetailSection
<TaxonBase
> implements ITaxonDetailSection
{
34 private static final Logger logger
= Logger
35 .getLogger(TaxonBaseDetailSection
.class);
38 * <p>Constructor for TaxonBaseDetailSection.</p>
40 * @param parentElement a {@link eu.etaxonomy.taxeditor.forms.ICdmFormElement} object.
42 * @param cdmFormFactory a {@link eu.etaxonomy.taxeditor.forms.CdmFormFactory} object.
43 * @param conversation a {@link eu.etaxonomy.cdm.api.conversation.ConversationHolder} object.
44 * @param selectionProvider a {@link org.eclipse.jface.viewers.ISelectionProvider} object.
46 public TaxonBaseDetailSection(CdmFormFactory cdmFormFactory
, ConversationHolder conversation
, ICdmFormElement parentElement
, ISelectionProvider selectionProvider
, int style
) {
47 super(cdmFormFactory
, conversation
, parentElement
, selectionProvider
, style
);
52 * @see eu.etaxonomy.taxeditor.section.ITaxonDetailSection#setTaxon(eu.etaxonomy.cdm.model.taxon.TaxonBase)
55 public void setTaxon(TaxonBase taxon
) {
56 TaxonBase taxonBase
= (TaxonBase
) HibernateProxyHelper
.deproxy(taxon
);
62 public String
getHeading() {
63 return getEntity() != null ?
getEntity().getClass().getSimpleName() : "TaxonBase";
68 protected DetailType
getDetailType() {
69 return DetailType
.TAXONBASE
;