Revision e3a4a3ff
Added by Andreas Müller almost 7 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/taxon/ParsingMessagesSection.java | ||
---|---|---|
16 | 16 |
|
17 | 17 |
import eu.etaxonomy.cdm.api.conversation.ConversationHolder; |
18 | 18 |
import eu.etaxonomy.cdm.hibernate.HibernateProxyHelper; |
19 |
import eu.etaxonomy.cdm.model.name.NonViralName; |
|
19 |
import eu.etaxonomy.cdm.model.name.INonViralName;
|
|
20 | 20 |
import eu.etaxonomy.cdm.model.taxon.TaxonBase; |
21 | 21 |
import eu.etaxonomy.cdm.strategy.parser.ParserProblem; |
22 | 22 |
import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory; |
... | ... | |
30 | 30 |
* |
31 | 31 |
* @author n.hoffmann |
32 | 32 |
* @created Mar 3, 2010 |
33 |
* @version 1.0 |
|
34 | 33 |
*/ |
35 |
public class ParsingMessagesSection extends AbstractCdmDetailSection<NonViralName> implements ITaxonBaseDetailSection { |
|
34 |
public class ParsingMessagesSection |
|
35 |
extends AbstractCdmDetailSection<INonViralName> |
|
36 |
implements ITaxonBaseDetailSection { |
|
36 | 37 |
|
37 | 38 |
/** Constant <code>HEADING_SUCCESS=""</code> */ |
38 | 39 |
public static final String HEADING_SUCCESS = ""; |
... | ... | |
64 | 65 |
@Override |
65 | 66 |
public void setTaxonBase(TaxonBase entity) { |
66 | 67 |
this.taxonBase = entity; |
67 |
setEntity((NonViralName) HibernateProxyHelper.deproxy(entity.getName()));
|
|
68 |
setEntity(HibernateProxyHelper.deproxy(entity.getName())); |
|
68 | 69 |
destroyParsingProblemComposites(); |
69 | 70 |
if(getEntity().hasProblem()){ |
70 | 71 |
displayParsingProblems(); |
... | ... | |
100 | 101 |
return HEADING_SUCCESS; |
101 | 102 |
} |
102 | 103 |
|
103 |
/* (non-Javadoc) |
|
104 |
* @see eu.etaxonomy.taxeditor.section.ITaxonDetailSection#getTaxon(eu.etaxonomy.cdm.model.taxon.TaxonBase) |
|
105 |
*/ |
|
106 | 104 |
@Override |
107 | 105 |
public TaxonBase getTaxonBase() { |
108 | 106 |
return taxonBase; |
109 | 107 |
} |
110 | 108 |
|
111 |
/* (non-Javadoc) |
|
112 |
* @see eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailSection#createCdmDetailElement(eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailSection, int) |
|
113 |
*/ |
|
114 | 109 |
@Override |
115 |
protected AbstractCdmDetailElement<NonViralName> createCdmDetailElement(AbstractCdmDetailSection<NonViralName> parentElement, int style) { |
|
110 |
protected AbstractCdmDetailElement<INonViralName> createCdmDetailElement( |
|
111 |
AbstractCdmDetailSection<INonViralName> parentElement, int style) { |
|
116 | 112 |
//no detail element |
117 | 113 |
return null; |
118 | 114 |
} |
Also available in: Unified diff
ref #6446 merge taxon name subclasses in TaxEditor