Source:
<code>protected void createMainControl(Composite parent, EEFTabbedPropertySheetPage tabbedPropertySheetPage) { EEFTabbedPropertySheetWidgetFactory widgetFactory = tabbedPropertySheetPage.getWidgetFactory(); this.singleReference = widgetFactory.createFlatFormComposite(parent); this.singleReference.setLayout(new RowLayout(SWT.HORIZONTAL)); if (this.description.getOnClickExpression() != null) { this.hyperlink = widgetFactory.createHyperlink(this.singleReference, "", SWT.NONE); } else { <START> this.text = widgetFactory.createText(this.singleReference, "", SWT.READ_ONLY); END> } if (this.description.getCreateExpression() != null) { this.createButton = widgetFactory.createButton(this.singleReference, "", SWT.NONE); this.createButton.setImage(EEFIdeUiPlugin.getPlugin().getImageRegistry().get(Icons.CREATE)); } this.searchButton = widgetFactory.createButton(this.singleReference, "", SWT.NONE); this.searchButton.setImage(EEFIdeUiPlugin.getPlugin().getImageRegistry().get(Icons.SEARCH)); this.unsetButton = widgetFactory.createButton(this.singleReference, "", SWT.NONE); this.unsetButton.setImage(EEFIdeUiPlugin.getPlugin().getImageRegistry().get(Icons.UNSET)); widgetFactory.paintBordersFor(parent); FormData formData = new FormData(); formData.left = new FormAttachment(0, LABEL_WIDTH); formData.right = new FormAttachment(100, 0); this.singleReference.setLayoutData(formData); this.controller = new EEFControllersFactory().createSingleReferenceController(this.description, this.variableManager, this.interpreter, this.editingDomain); }</code><technical_language>A label this odd border</technical_language>

Target:
protected void createMainControl(Composite parent, EEFTabbedPropertySheetPage tabbedPropertySheetPage) { EEFTabbedPropertySheetWidgetFactory widgetFactory = tabbedPropertySheetPage.getWidgetFactory(); this.singleReference = widgetFactory.createFlatFormComposite(parent); GridLayout layout = new GridLayout(2, false); singleReference.setLayout(layout); GridData gd = new GridData(); gd.grabExcessHorizontalSpace = true; gd.horizontalAlignment = SWT.FILL; if (this.description.getOnClickExpression() != null) { this.hyperlink = widgetFactory.createHyperlink(this.singleReference, "", SWT.NONE); hyperlink.setLayoutData(gd); } else { this.text = widgetFactory.createLabel(this.singleReference, "", SWT.NONE); text.setLayoutData(gd); } this.buttons = widgetFactory.createFlatFormComposite(singleReference); this.buttons.setLayout(new RowLayout(SWT.HORIZONTAL)); gd = new GridData(); gd.grabExcessHorizontalSpace = false; this.buttons.setLayoutData(gd); if (this.description.getCreateExpression() != null) { this.createButton = widgetFactory.createButton(this.buttons, "", SWT.NONE); this.createButton.setImage(EEFIdeUiPlugin.getPlugin().getImageRegistry().get(Icons.CREATE)); } this.searchButton = widgetFactory.createButton(this.buttons, "", SWT.NONE); this.searchButton.setImage(EEFIdeUiPlugin.getPlugin().getImageRegistry().get(Icons.SEARCH)); this.unsetButton = widgetFactory.createButton(this.buttons, "", SWT.NONE); this.unsetButton.setImage(EEFIdeUiPlugin.getPlugin().getImageRegistry().get(Icons.UNSET)); widgetFactory.paintBordersFor(parent); FormData formData = new FormData(); formData.left = new FormAttachment(0, LABEL_WIDTH); formData.right = new FormAttachment(100, 0); this.singleReference.setLayoutData(formData); this.controller = new EEFControllersFactory().createSingleReferenceController(this.description, this.variableManager, this.interpreter, this.editingDomain); }