public Control createControl(Composite parent) { final Composite composite = SWTFactory.createComposite(parent, parent.getFont(), 2, 0, GridData.FILL_BOTH); createLabelPreferences(composite); return composite; }
@Override protected Control createDialogArea(Composite parent) { Composite composite = (Composite) super.createDialogArea(parent); Composite inner = SWTFactory.createComposite(composite, composite.getFont(), 2, 1, GridData.FILL_BOTH); SWTFactory.createLabel(inner, Messages.TclAddWatchpointDialog_expressionLabel, 1); expressionField = SWTFactory.createText(inner, SWT.BORDER, 1, expression); ((GridData) expressionField.getLayoutData()).widthHint = convertWidthInCharsToPixels(20); return composite; }