Package org.eclipse.core.databinding

Examples of org.eclipse.core.databinding.DataBindingContext.bindValue()


  protected DataBindingContext initDataBindings() {
    DataBindingContext bindingContext = new DataBindingContext();
    //
    IObservableValue nameTextObserveTextObserveWidget = SWTObservables.observeText(nameText, SWT.Modify);
    IObservableValue constantNameObserveValue = BeansObservables.observeValue(constant, "toolName");
    bindingContext.bindValue(nameTextObserveTextObserveWidget, constantNameObserveValue, null, null);
    //
    IObservableValue valueTextObserveTextObserveWidget = SWTObservables.observeText(valueText, SWT.Modify);
    IObservableValue constantValueObserveValue = BeansObservables.observeValue(constant, "value");
    bindingContext.bindValue(valueTextObserveTextObserveWidget, constantValueObserveValue, null, null);
    //
View Full Code Here


    IObservableValue constantNameObserveValue = BeansObservables.observeValue(constant, "toolName");
    bindingContext.bindValue(nameTextObserveTextObserveWidget, constantNameObserveValue, null, null);
    //
    IObservableValue valueTextObserveTextObserveWidget = SWTObservables.observeText(valueText, SWT.Modify);
    IObservableValue constantValueObserveValue = BeansObservables.observeValue(constant, "value");
    bindingContext.bindValue(valueTextObserveTextObserveWidget, constantValueObserveValue, null, null);
    //
    IObservableValue publicCheckButtonObserveSelectionObserveWidget = SWTObservables.observeSelection(publicCheckButton);
    IObservableValue constantPublicObserveValue = BeansObservables.observeValue(constant, "public");
    bindingContext.bindValue(publicCheckButtonObserveSelectionObserveWidget, constantPublicObserveValue, null, null);
    //
View Full Code Here

    IObservableValue constantValueObserveValue = BeansObservables.observeValue(constant, "value");
    bindingContext.bindValue(valueTextObserveTextObserveWidget, constantValueObserveValue, null, null);
    //
    IObservableValue publicCheckButtonObserveSelectionObserveWidget = SWTObservables.observeSelection(publicCheckButton);
    IObservableValue constantPublicObserveValue = BeansObservables.observeValue(constant, "public");
    bindingContext.bindValue(publicCheckButtonObserveSelectionObserveWidget, constantPublicObserveValue, null, null);
    //
    return bindingContext;
  }
 
View Full Code Here

    if (this.attribute instanceof ToolWindowAttribute){
      strategy.setAfterConvertValidator(new ToolNameValidatorWithBrackets(nameText));
    } else {
      strategy.setAfterConvertValidator(new ToolNameValidator(nameText));
    }
    bindingContext.bindValue(nameTextObserveTextObserveWidget, attributeNameObserveValue, strategy, null);
    //
    IObservableValue typeTextObserveTextObserveWidget = SWTObservables.observeText(typeText, SWT.Modify);
    IObservableValue attributeTypeObserveValue = BeansObservables.observeValue(attribute, "type");
    bindingContext.bindValue(typeTextObserveTextObserveWidget, attributeTypeObserveValue, null, null);
    //
View Full Code Here

    }
    bindingContext.bindValue(nameTextObserveTextObserveWidget, attributeNameObserveValue, strategy, null);
    //
    IObservableValue typeTextObserveTextObserveWidget = SWTObservables.observeText(typeText, SWT.Modify);
    IObservableValue attributeTypeObserveValue = BeansObservables.observeValue(attribute, "type");
    bindingContext.bindValue(typeTextObserveTextObserveWidget, attributeTypeObserveValue, null, null);
    //
    IObservableValue btnCheckButtonObserveSelectionObserveWidget = SWTObservables.observeSelection(btnCheckButton);
    IObservableValue attributePublicObserveValue = BeansObservables.observeValue(attribute, "public");
    bindingContext.bindValue(btnCheckButtonObserveSelectionObserveWidget, attributePublicObserveValue, null, null);
    //
View Full Code Here

    IObservableValue attributeTypeObserveValue = BeansObservables.observeValue(attribute, "type");
    bindingContext.bindValue(typeTextObserveTextObserveWidget, attributeTypeObserveValue, null, null);
    //
    IObservableValue btnCheckButtonObserveSelectionObserveWidget = SWTObservables.observeSelection(btnCheckButton);
    IObservableValue attributePublicObserveValue = BeansObservables.observeValue(attribute, "public");
    bindingContext.bindValue(btnCheckButtonObserveSelectionObserveWidget, attributePublicObserveValue, null, null);
    //
    IObservableValue nameTextObserveEditableObserveWidget = SWTObservables.observeEditable(nameText);
    IObservableValue attributeReadWriteObserveValue = BeansObservables.observeValue(attribute, "readWrite");
    bindingContext.bindValue(nameTextObserveEditableObserveWidget, attributeReadWriteObserveValue, null, null);
    //
View Full Code Here

    IObservableValue attributePublicObserveValue = BeansObservables.observeValue(attribute, "public");
    bindingContext.bindValue(btnCheckButtonObserveSelectionObserveWidget, attributePublicObserveValue, null, null);
    //
    IObservableValue nameTextObserveEditableObserveWidget = SWTObservables.observeEditable(nameText);
    IObservableValue attributeReadWriteObserveValue = BeansObservables.observeValue(attribute, "readWrite");
    bindingContext.bindValue(nameTextObserveEditableObserveWidget, attributeReadWriteObserveValue, null, null);
    //
    IObservableValue typeTextObserveEditableObserveWidget = SWTObservables.observeEditable(typeText);
    bindingContext.bindValue(typeTextObserveEditableObserveWidget, attributeReadWriteObserveValue, null, null);
    //
    IObservableValue btnCheckButtonObserveEnabledObserveWidget = SWTObservables.observeEnabled(btnCheckButton);
View Full Code Here

    IObservableValue nameTextObserveEditableObserveWidget = SWTObservables.observeEditable(nameText);
    IObservableValue attributeReadWriteObserveValue = BeansObservables.observeValue(attribute, "readWrite");
    bindingContext.bindValue(nameTextObserveEditableObserveWidget, attributeReadWriteObserveValue, null, null);
    //
    IObservableValue typeTextObserveEditableObserveWidget = SWTObservables.observeEditable(typeText);
    bindingContext.bindValue(typeTextObserveEditableObserveWidget, attributeReadWriteObserveValue, null, null);
    //
    IObservableValue btnCheckButtonObserveEnabledObserveWidget = SWTObservables.observeEnabled(btnCheckButton);
    bindingContext.bindValue(btnCheckButtonObserveEnabledObserveWidget, attributeReadWriteObserveValue, null, null);
    //
    return bindingContext;
View Full Code Here

    //
    IObservableValue typeTextObserveEditableObserveWidget = SWTObservables.observeEditable(typeText);
    bindingContext.bindValue(typeTextObserveEditableObserveWidget, attributeReadWriteObserveValue, null, null);
    //
    IObservableValue btnCheckButtonObserveEnabledObserveWidget = SWTObservables.observeEnabled(btnCheckButton);
    bindingContext.bindValue(btnCheckButtonObserveEnabledObserveWidget, attributeReadWriteObserveValue, null, null);
    //
    return bindingContext;
  }
}
View Full Code Here

  protected DataBindingContext initDataBindings() {
    DataBindingContext bindingContext = new DataBindingContext();
    //
    IObservableValue projectTextObserveTextObserveWidget = SWTObservables.observeText(projectText, SWT.FocusOut);
    IObservableValue planNameObserveValue = BeansObservables.observeValue(plan, "toolName");
    bindingContext.bindValue(projectTextObserveTextObserveWidget, planNameObserveValue, null, null);
    //
    IObservableValue classNameTextObserveTextObserveWidget = SWTObservables.observeText(classNameText, SWT.FocusOut);
    IObservableValue clsNameObserveValue = BeansObservables.observeValue(cls, "toolName");
    bindingContext.bindValue(classNameTextObserveTextObserveWidget, clsNameObserveValue, null, null);
    //
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.