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");
});
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){