From: Patrick Plitzner Date: Tue, 25 Aug 2015 06:15:20 +0000 (+0200) Subject: Change order of controls X-Git-Tag: 3.8.0^2~47 X-Git-Url: https://dev.e-taxonomy.eu/gitweb/taxeditor.git/commitdiff_plain/59aac23bca62ed3f1c9799b09993b204e7d5dce4 Change order of controls --- diff --git a/eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/element/UriWithLabelElement.java b/eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/element/UriWithLabelElement.java index 36487dcd7..915e342f2 100644 --- a/eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/element/UriWithLabelElement.java +++ b/eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/element/UriWithLabelElement.java @@ -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){