ref #8233 Move collection above accession number
authorPatrick Plitzner <p.plitzner@bgbm.org>
Wed, 10 Apr 2019 13:50:16 +0000 (15:50 +0200)
committerPatrick Plitzner <p.plitzner@bgbm.org>
Wed, 10 Apr 2019 15:31:44 +0000 (17:31 +0200)
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/name/type/CloneTypeWizardComposite.java

index a7ae908..faf2a7e 100644 (file)
@@ -51,6 +51,17 @@ public class CloneTypeWizardComposite extends Composite {
         Combo combo = comboViewerBaseType.getCombo();
         combo.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 2, 1));
 
+                Label lblNewLabel_2 = new Label(this, SWT.NONE);
+                lblNewLabel_2.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1));
+                lblNewLabel_2.setText("Collection");
+
+                txtCollection = new Text(this, SWT.BORDER);
+                txtCollection.setEnabled(false);
+                txtCollection.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));
+
+                btnBrowseCollection = new Button(this, SWT.NONE);
+                btnBrowseCollection.setImage(ImageResources.getImage(ImageResources.BROWSE_ICON));
+
         Label lblNewLabel = new Label(this, SWT.NONE);
         lblNewLabel.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1));
         lblNewLabel.setText("Accession Number");
@@ -58,24 +69,13 @@ public class CloneTypeWizardComposite extends Composite {
         txtAccNumber = new Text(this, SWT.BORDER);
         txtAccNumber.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 2, 1));
 
-        Label lblNewLabel_2 = new Label(this, SWT.NONE);
-        lblNewLabel_2.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1));
-        lblNewLabel_2.setText("Collection");
-
-        txtCollection = new Text(this, SWT.BORDER);
-        txtCollection.setEnabled(false);
-        txtCollection.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));
-
-        btnBrowseCollection = new Button(this, SWT.NONE);
-        btnBrowseCollection.setImage(ImageResources.getImage(ImageResources.BROWSE_ICON));
-
-        Label lblNewLabel_1 = new Label(this, SWT.NONE);
-        lblNewLabel_1.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1));
-        lblNewLabel_1.setText("Type Status");
+                Label lblNewLabel_1 = new Label(this, SWT.NONE);
+                lblNewLabel_1.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1));
+                lblNewLabel_1.setText("Type Status");
 
-        comboTypeStatus = new TermUuidComboViewer(this, SWT.NONE);
-        comboTypeStatus.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 2, 1));
-        comboTypeStatus.setInput(TermType.SpecimenTypeDesignationStatus);
+                comboTypeStatus = new TermUuidComboViewer(this, SWT.NONE);
+                comboTypeStatus.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 2, 1));
+                comboTypeStatus.setInput(TermType.SpecimenTypeDesignationStatus);
 
     }