ref #9199: move original information behind name used in source
authorKatja Luther <k.luther@bgbm.org>
Thu, 3 Dec 2020 14:26:33 +0000 (15:26 +0100)
committerKatja Luther <k.luther@bgbm.org>
Thu, 3 Dec 2020 14:26:33 +0000 (15:26 +0100)
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/reference/AdvancedSourceElement.java

index 7578a92e1590a25a57f6b4738e80640523a74cc6..22431401b0eba07d3485d390bbb0d877ba83ecbe 100755 (executable)
@@ -45,15 +45,16 @@ public class AdvancedSourceElement extends AbstractCdmDetailElement<OriginalSour
     protected void createControls(ICdmFormElement formElement, OriginalSourceBase entity, int style) {
         Display display = Display.getCurrent();
         Color background = display.getSystemColor(SWT.COLOR_WIDGET_BACKGROUND);
-        text_originaleNameString = formFactory.createTextWithLabelElement(
-                formElement, "Original Information", entity != null?entity.getOriginalNameString():null, SWT.NULL);
 
-        text_originaleNameString.setBackground(background);
 
         if (entity instanceof DescriptionElementSource){
             select_nameUsedInSource = formFactory.createSelectionElement(TaxonName.class, formElement, "Name in Source", entity != null? ((DescriptionElementSource)entity).getNameUsedInSource(): null, EntitySelectionElement.DELETABLE, style);
             select_nameUsedInSource.setBackground(background);
         }
+        text_originaleNameString = formFactory.createTextWithLabelElement(
+                formElement, "Original Information", entity != null?entity.getOriginalNameString():null, SWT.NULL);
+
+        text_originaleNameString.setBackground(background);
 
         if (PreferencesUtil.getBooleanValue(PreferencePredicate.ShowNamespaceInSource.getKey())){
             text_idNamespace = formFactory.createTextWithLabelElement(formElement, "ID Namespace", entity != null?entity.getIdNamespace():null, style);