X-Git-Url: https://dev.e-taxonomy.eu/gitweb/taxeditor.git/blobdiff_plain/dacb59c903b23d8f5000768b79469a20ac94043a..81d4d139eb560bf5e3f86abaa396b4eedaf93eb3:/eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/taxon/TaxonBaseDetailSection.java diff --git a/eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/taxon/TaxonBaseDetailSection.java b/eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/taxon/TaxonBaseDetailSection.java index e0a5d92eb..5bcad1e77 100644 --- a/eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/taxon/TaxonBaseDetailSection.java +++ b/eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/taxon/TaxonBaseDetailSection.java @@ -1,4 +1,3 @@ -// $Id$ /** * Copyright (C) 2007 EDIT * European Distributed Institute of Taxonomy @@ -13,67 +12,29 @@ package eu.etaxonomy.taxeditor.ui.section.taxon; import org.eclipse.jface.viewers.ISelectionProvider; import eu.etaxonomy.cdm.api.conversation.ConversationHolder; -import eu.etaxonomy.cdm.hibernate.HibernateProxyHelper; import eu.etaxonomy.cdm.model.taxon.TaxonBase; import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory; import eu.etaxonomy.taxeditor.ui.element.ICdmFormElement; import eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailElement; import eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailSection; -import eu.etaxonomy.taxeditor.ui.section.ITaxonBaseDetailSection; /** - *
TaxonBaseDetailSection class.
- * * @author n.hoffmann * @created Nov 4, 2009 * @version 1.0 */ -public class TaxonBaseDetailSection extends AbstractCdmDetailSectionConstructor for TaxonBaseDetailSection.
- * - * @param parentElement a {@link eu.etaxonomy.taxeditor.ui.element.ICdmFormElement} object. - * @param style a int. - * @param cdmFormFactory a {@link eu.etaxonomy.taxeditor.ui.element.CdmFormFactory} object. - * @param conversation a {@link eu.etaxonomy.cdm.api.conversation.ConversationHolder} object. - * @param selectionProvider a {@link org.eclipse.jface.viewers.ISelectionProvider} object. - */ public TaxonBaseDetailSection(CdmFormFactory cdmFormFactory, ConversationHolder conversation, ICdmFormElement parentElement, ISelectionProvider selectionProvider, int style) { super(cdmFormFactory, conversation, parentElement, selectionProvider, style); } - /* - * (non-Javadoc) - * @see eu.etaxonomy.taxeditor.section.ITaxonDetailSection#setTaxon(eu.etaxonomy.cdm.model.taxon.TaxonBase) - */ - /** {@inheritDoc} */ - @Override - public void setTaxonBase(TaxonBase entity) { - this.taxonBase = entity; - TaxonBase taxonBase = (TaxonBase) HibernateProxyHelper.deproxy(entity); - setEntity(taxonBase); - } - /** {@inheritDoc} */ @Override public String getHeading() { return getEntity() != null ? getEntity().getClass().getSimpleName() : "TaxonBase"; } - /* (non-Javadoc) - * @see eu.etaxonomy.taxeditor.section.ITaxonDetailSection#getTaxon(eu.etaxonomy.cdm.model.taxon.TaxonBase) - */ - @Override - public TaxonBase getTaxonBase() { - return taxonBase; - } - - /* (non-Javadoc) - * @see eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailSection#createCdmDetailElement(eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailSection, int) - */ @Override protected AbstractCdmDetailElement