From: Katja Luther Date: Wed, 2 Dec 2020 17:28:21 +0000 (+0100) Subject: ref #9199: layout issues and code cleaning X-Git-Tag: 5.18.0~1^2~16 X-Git-Url: https://dev.e-taxonomy.eu/gitweb/taxeditor.git/commitdiff_plain/387aef2a775a74295ca4c91fd1d0839c02656210 ref #9199: layout issues and code cleaning --- diff --git a/eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/common/ExternalLinksSection.java b/eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/common/ExternalLinksSection.java index ab4e30c35..93441847f 100755 --- a/eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/common/ExternalLinksSection.java +++ b/eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/common/ExternalLinksSection.java @@ -141,11 +141,6 @@ public class ExternalLinksSection extends AbstractEntityCollectionSection selection_NomRef; - -// protected EntitySelectionElement selection_Ref; -// protected TextWithLabelElement microReference; -// protected OriginalSourceAdvancedSection advancedSection; protected String label = "Source"; protected CdmBase cdmEntity; - protected TextWithLabelElement text_idInSource; - protected TextWithLabelElement text_idNamespace; - protected TextWithLabelElement text_originaleNameString; - protected TextWithLabelElement text_cdmsource; protected EntitySelectionElement select_nameUsedInSource; - protected ExternalLinksSection externalLinks; @@ -84,7 +74,6 @@ public class NomenclaturalSourceElement extends OriginalSourceElement { } microReference = formFactory.createTextWithLabelElement(formElement, "Details", entity != null? entity.getCitationMicroReference(): "", style); -// microReference.setIndent(15); Label sep = formFactory.createLabel(formElement.getLayoutComposite(), ""); sep.setLayoutData(LayoutConstants.FILL_HORIZONTALLY(2, 1)); @@ -92,10 +81,11 @@ public class NomenclaturalSourceElement extends OriginalSourceElement { select_nameUsedInSource = formFactory.createSelectionElement(TaxonName.class, formElement, "Original Spelling", entity != null? ((DescriptionElementSource)entity).getNameUsedInSource(): null, EntitySelectionElement.ALL, style); externalLinks = formFactory.createExternalLinksSection(getConversationHolder(), formElement, "Protologue/Original Publication", StoreUtil.getSectionStyle(ExternalLinksSection.class, DescriptionElementSource.class.getCanonicalName())); + externalLinks.setEmptySectionString("No protologue yet."); externalLinks.setLayoutData(LayoutConstants.FILL_HORIZONTALLY(2, 3)); externalLinks.setEntity(entity); externalLinks.setFont(AbstractUtility.getFont(Resources.COLOR_FONT_DEFAULT)); - externalLinks.setEmptySectionString("No protologue yet."); + addControl(externalLinks); addElement(externalLinks); @@ -109,8 +99,6 @@ public class NomenclaturalSourceElement extends OriginalSourceElement { advancedSection.setFont(AbstractUtility.getFont(Resources.COLOR_FONT_DEFAULT)); addControl(advancedSection); addElement(advancedSection); - - this.getLayoutComposite().layout(); }