Change order of controls
authorPatrick Plitzner <p.plitzner@bgbm.org>
Tue, 25 Aug 2015 06:15:20 +0000 (08:15 +0200)
committerPatrick Plitzner <p.plitzner@bgbm.org>
Tue, 25 Aug 2015 06:15:20 +0000 (08:15 +0200)
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/element/UriWithLabelElement.java

index 36487dcd7fe90dd7b2c241e6f38368edc6fb0d72..915e342f2ea4ad3a8edcff75d716b129c727c0d4 100644 (file)
@@ -45,12 +45,18 @@ public class UriWithLabelElement extends TextWithLabelElement {
                        URI initialUri, Integer textHeight, int style) {
                super(formFactory, parentElement, false);
 
+               //label
         initLabel(formFactory, labelString, false, getLayoutComposite());
 
+        //composite(uri + button)
         Composite textAndButton = formFactory.createComposite(getLayoutComposite(), style);
         textAndButton.setLayout(LayoutConstants.LAYOUT(2, false));
         textAndButton.setLayoutData(LayoutConstants.FILL_HORIZONTALLY());
 
+        //uri text
+        initText(formFactory, null, textHeight, null, false, style, textAndButton);
+
+        //button
                btnOpenBrowser = formFactory.createButton(textAndButton, "", SWT.NONE);
                btnOpenBrowser.setImage(ImageResources.getImage(ImageResources.WEB));
                btnOpenBrowser.setToolTipText("Open in external browser");
@@ -76,8 +82,6 @@ public class UriWithLabelElement extends TextWithLabelElement {
         });
                btnOpenBrowser.setLayoutData(LayoutConstants.RIGHT());
 
-               initLabel(formFactory, labelString, false, textAndButton);
-
                labelException = formFactory.createLabel(getLayoutComposite(), "", SWT.WRAP);
                int numColumns = AbstractFormSection.DEFAULT_NUM_COLUMNS;
                if(getLayoutComposite().getLayout() instanceof TableWrapLayout){