Revision 1c621bae
Added by Patrick Plitzner over 5 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/supplemental/HeadlineSection.java | ||
---|---|---|
1 | 1 |
/** |
2 |
*
|
|
2 |
* |
|
3 | 3 |
*/ |
4 | 4 |
package eu.etaxonomy.taxeditor.ui.section.supplemental; |
5 | 5 |
|
... | ... | |
30 | 30 |
int style) { |
31 | 31 |
super(cdmFormFactory, parentElement, style); |
32 | 32 |
} |
33 |
|
|
33 |
|
|
34 | 34 |
/** {@inheritDoc} */ |
35 | 35 |
@Override |
36 | 36 |
public void setEntity(ICdmBase cdmBase) { |
37 |
ICdmBase entity = (ICdmBase) HibernateProxyHelper.deproxy(cdmBase);
|
|
37 |
ICdmBase entity = HibernateProxyHelper.deproxy(cdmBase); |
|
38 | 38 |
super.setEntity(entity); |
39 | 39 |
|
40 |
setText(entity.getClass().getSimpleName() + (entity instanceof IdentifiableEntity ? ": " + ((IdentifiableEntity) entity).getTitleCache() : ""));
|
|
40 |
setText(entity.getClass().getSimpleName() + (entity instanceof IdentifiableEntity ? ": " + ((IdentifiableEntity) entity).generateTitle() : ""));
|
|
41 | 41 |
layout(); |
42 | 42 |
} |
43 | 43 |
|
Also available in: Unified diff
ref #6973 Fix label generation in suppData view