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
.name
;
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
.name
.NonViralName
;
19 import eu
.etaxonomy
.cdm
.model
.taxon
.TaxonBase
;
20 import eu
.etaxonomy
.taxeditor
.forms
.CdmFormFactory
;
21 import eu
.etaxonomy
.taxeditor
.forms
.ICdmFormElement
;
22 import eu
.etaxonomy
.taxeditor
.forms
.CdmFormFactory
.DetailType
;
23 import eu
.etaxonomy
.taxeditor
.section
.AbstractCdmDetailSection
;
24 import eu
.etaxonomy
.taxeditor
.section
.ITaxonDetailSection
;
27 * <p>NonViralNameDetailSection class.</p>
30 * @created May 20, 2010
33 public class NonViralNameDetailSection
extends AbstractCdmDetailSection
<NonViralName
>
34 implements ITaxonDetailSection
{
37 private static final Logger logger
= Logger
38 .getLogger(NonViralNameDetailSection
.class);
41 * <p>Constructor for NonViralNameDetailSection.</p>
43 * @param formFactory a {@link eu.etaxonomy.taxeditor.forms.CdmFormFactory} object.
44 * @param conversation a {@link eu.etaxonomy.cdm.api.conversation.ConversationHolder} object.
45 * @param parentElement a {@link eu.etaxonomy.taxeditor.forms.ICdmFormElement} object.
46 * @param selectionProvider a {@link org.eclipse.jface.viewers.ISelectionProvider} object.
49 public NonViralNameDetailSection(CdmFormFactory formFactory
, ConversationHolder conversation
,
50 ICdmFormElement parentElement
, ISelectionProvider selectionProvider
, int style
) {
51 super(formFactory
, conversation
, parentElement
, selectionProvider
, style
);
55 * @see eu.etaxonomy.taxeditor.section.AbstractCdmDetailSection#getDetailType()
59 protected DetailType
getDetailType() {
60 return DetailType
.NONVIRALNAME
;
64 * @see eu.etaxonomy.taxeditor.section.AbstractCdmDetailSection#getHeading()
68 public String
getHeading() {
73 * @see eu.etaxonomy.taxeditor.section.ITaxonDetailSection#setTaxon(eu.etaxonomy.cdm.model.taxon.TaxonBase)
76 public void setTaxon(TaxonBase taxon
) {
77 NonViralName name
= (NonViralName
) HibernateProxyHelper
.deproxy(taxon
.getName());