Revision f13ee832
Added by Katja Luther over 2 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/reference/SecundumSourceElement.java | ||
---|---|---|
48 | 48 |
@Override |
49 | 49 |
protected void createControls(ICdmFormElement formElement, SecundumSource entity, int style) { |
50 | 50 |
|
51 |
entity = HibernateProxyHelper.deproxy(entity);
|
|
51 |
setEntityWithoutUpdate(HibernateProxyHelper.deproxy(entity));
|
|
52 | 52 |
|
53 | 53 |
this.selection_Ref = formFactory.createSelectionElement(Reference.class, formElement, "Secundum", null, EntitySelectionElement.ALL, style); |
54 | 54 |
|
55 |
if (entity != null){
|
|
56 |
selection_Ref.setEntity(entity.getCitation());
|
|
55 |
if (getEntity() != null){
|
|
56 |
selection_Ref.setEntity(getEntity().getCitation());
|
|
57 | 57 |
} |
58 | 58 |
selection_Ref.setBackground(this.getPersistentBackground()); |
59 | 59 |
for (ICdmFormElement element: selection_Ref.getElements()){ |
60 | 60 |
element.setBackground(getPersistentBackground()); |
61 | 61 |
} |
62 | 62 |
|
63 |
microReference = formFactory.createTextWithLabelElement(formElement, "Detail", entity != null? entity.getCitationMicroReference(): "", style);
|
|
63 |
microReference = formFactory.createTextWithLabelElement(formElement, "Detail", getEntity() != null? getEntity().getCitationMicroReference(): "", style);
|
|
64 | 64 |
|
65 | 65 |
Label sep = formFactory.createLabel(formElement.getLayoutComposite(), ""); |
66 | 66 |
sep.setLayoutData(LayoutConstants.FILL_HORIZONTALLY(2, 1)); |
... | ... | |
69 | 69 |
externalLinks = formFactory.createExternalLinksSection(getConversationHolder(), formElement, "Links", false, StoreUtil.getSectionStyle(ExternalLinksSection.class, DescriptionElementSource.class.getCanonicalName())); |
70 | 70 |
externalLinks.setEmptySectionString("No links yet."); |
71 | 71 |
externalLinks.setLayoutData(LayoutConstants.FILL_HORIZONTALLY(2, 3)); |
72 |
externalLinks.setEntity(entity);
|
|
72 |
externalLinks.setEntity(getEntity());
|
|
73 | 73 |
externalLinks.setFont(AbstractUtility.getFont(Resources.COLOR_FONT_DEFAULT)); |
74 | 74 |
|
75 | 75 |
|
Also available in: Unified diff
ref #9340, #9734, #9668: further improvements for configurable sec handling during taxon(base) operations