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
.name
;
13 import org
.eclipse
.jface
.viewers
.ISelectionProvider
;
15 import eu
.etaxonomy
.cdm
.api
.conversation
.ConversationHolder
;
16 import eu
.etaxonomy
.cdm
.hibernate
.HibernateProxyHelper
;
17 import eu
.etaxonomy
.cdm
.model
.name
.NonViralName
;
18 import eu
.etaxonomy
.cdm
.model
.taxon
.TaxonBase
;
19 import eu
.etaxonomy
.taxeditor
.ui
.element
.CdmFormFactory
;
20 import eu
.etaxonomy
.taxeditor
.ui
.element
.ICdmFormElement
;
21 import eu
.etaxonomy
.taxeditor
.ui
.section
.AbstractCdmDetailElement
;
22 import eu
.etaxonomy
.taxeditor
.ui
.section
.AbstractCdmDetailSection
;
23 import eu
.etaxonomy
.taxeditor
.ui
.section
.ITaxonBaseDetailSection
;
30 public class AuthorshipDetailSection
extends AbstractCdmDetailSection
<NonViralName
> implements ITaxonBaseDetailSection
{
32 private TaxonBase taxonBase
;
34 public AuthorshipDetailSection(CdmFormFactory cdmFormFactory
, ConversationHolder conversation
, ICdmFormElement parentElement
,
35 ISelectionProvider selectionProvider
, int style
) {
36 super(cdmFormFactory
, conversation
, parentElement
, selectionProvider
, style
);
41 public void setTaxonBase(TaxonBase entity
) {
42 this.taxonBase
= entity
;
43 NonViralName name
= (NonViralName
) HibernateProxyHelper
.deproxy(entity
.getName());
49 public String
getHeading() {
54 public TaxonBase
getTaxonBase() {
59 protected AbstractCdmDetailElement
<NonViralName
> createCdmDetailElement(AbstractCdmDetailSection
<NonViralName
> parentElement
, int style
) {
60 return formFactory
.createAuthorshipDetailElement(parentElement
, style
);