Пример #1
0
  @Override
  protected final Control createContents(Composite parent) {
    Control answer = super.createContents(parent);

    bindings.onValidationStatusChanged(
        AggregateValidationStatus.getStatusMaxSeverity(
            getBindingContext().getValidationStatusProviders()));

    return answer;
  }
Пример #2
0
  protected final Control createDialogArea(Composite parent) {
    Composite composite = (Composite) super.createDialogArea(parent);

    Composite editArea = new Composite(composite, SWT.NONE);
    GridLayoutFactory.fillDefaults().numColumns(2).applyTo(editArea);
    editArea.setLayoutData(
        new GridData(GridData.FILL_BOTH | GridData.GRAB_HORIZONTAL | GridData.GRAB_VERTICAL));

    createFormElements(editArea);

    bindings.createErrorLabel(editArea);

    return composite;
  }
Пример #3
0
 protected DataBindingContext getBindingContext() {
   return bindings.getBindingContext();
 }