Package org.eclipse.core.databinding

Examples of org.eclipse.core.databinding.AggregateValidationStatus


    }
  };
  private IStatus currentStatus;

  protected void init() {
    aggregateStatus = new AggregateValidationStatus(dbc.getBindings(),
        AggregateValidationStatus.MAX_SEVERITY);
    aggregateStatus.addValueChangeListener(new IValueChangeListener() {
      public void handleValueChange(ValueChangeEvent event) {

        currentStatus = (IStatus) event.diff.getNewValue();
View Full Code Here


  /* (non-Javadoc)
   * @see org.eclipse.e4.xwt.databinding.IDataBindingContext#getStatus()
   */
  public AggregateValidationStatus getStatus() {
    if (this.status == null) {
      this.status = new AggregateValidationStatus(getContext(),
          this.statusType);
      if (this.parent != null) {
        this.parent.addDisposeListener(new DisposeListener() {
          public void widgetDisposed(DisposeEvent e) {
            status.dispose();
View Full Code Here

    {
        this.model = model;
        this.context = new DataBindingContext();

        context.bindValue(PojoObservables.observeValue(listener, "status"), //$NON-NLS-1$
                        new AggregateValidationStatus(context, AggregateValidationStatus.MAX_SEVERITY));
    }
View Full Code Here

        Label errorLabel = new Label(editArea, SWT.NONE);
        GridDataFactory.fillDefaults().span(2, 1).grab(true, false).applyTo(errorLabel);

        // error label
        context.bindValue(SWTObservables.observeText(errorLabel), //
                        new AggregateValidationStatus(context, AggregateValidationStatus.MAX_SEVERITY), //
                        null, //
                        new UpdateValueStrategy().setConverter(new StatusTextConverter()));
    }
View Full Code Here

TOP

Related Classes of org.eclipse.core.databinding.AggregateValidationStatus

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.