Package org.eclipse.core.databinding

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


    IObservableValue modelProjectTypeObserveValue = BeansObservables.observeValue(model, "projectType");
    bindingContext.bindValue(comboObserveSelectionObserveWidget, modelProjectTypeObserveValue, null, null);
    //
    IObservableValue uuidTextObserveTextObserveWidget = SWTObservables.observeText(uuidText, SWT.Modify);
    IObservableValue modelUUIDObserveValue = BeansObservables.observeValue(model, "UUID");
    bindingContext.bindValue(uuidTextObserveTextObserveWidget, modelUUIDObserveValue, null, null);
    //
    IObservableValue compatabilitySpinnerObserveSelectionObserveWidget = SWTObservables.observeSelection(compatabilitySpinner);
    IObservableValue modelCompatibilityLevelObserveValue = BeansObservables.observeValue(model, "compatibilityLevel");
    bindingContext.bindValue(compatabilitySpinnerObserveSelectionObserveWidget, modelCompatibilityLevelObserveValue, null, null);
    //
View Full Code Here


    IObservableValue modelUUIDObserveValue = BeansObservables.observeValue(model, "UUID");
    bindingContext.bindValue(uuidTextObserveTextObserveWidget, modelUUIDObserveValue, null, null);
    //
    IObservableValue compatabilitySpinnerObserveSelectionObserveWidget = SWTObservables.observeSelection(compatabilitySpinner);
    IObservableValue modelCompatibilityLevelObserveValue = BeansObservables.observeValue(model, "compatibilityLevel");
    bindingContext.bindValue(compatabilitySpinnerObserveSelectionObserveWidget, modelCompatibilityLevelObserveValue, null, null);
    //
    return bindingContext;
  }
}
View Full Code Here

    //
    IObservableValue textObserveTextObserveWidget = SWTObservables.observeText(nameText, SWT.Modify);
    IObservableValue constantNameObserveValue = BeansObservables.observeValue(constant, "toolName");
    UpdateValueStrategy strategy = new UpdateValueStrategy();
    strategy.setAfterConvertValidator(new ToolNameValidator(nameText));
    bindingContext.bindValue(textObserveTextObserveWidget, constantNameObserveValue, strategy, null);
    //
    IObservableValue text_1ObserveTextObserveWidget = SWTObservables.observeText(valueText, SWT.Modify);
    IObservableValue constantValueObserveValue = BeansObservables.observeValue(constant, "value");
    bindingContext.bindValue(text_1ObserveTextObserveWidget, constantValueObserveValue, null, null);
    //
View Full Code Here

    strategy.setAfterConvertValidator(new ToolNameValidator(nameText));
    bindingContext.bindValue(textObserveTextObserveWidget, constantNameObserveValue, strategy, null);
    //
    IObservableValue text_1ObserveTextObserveWidget = SWTObservables.observeText(valueText, SWT.Modify);
    IObservableValue constantValueObserveValue = BeansObservables.observeValue(constant, "value");
    bindingContext.bindValue(text_1ObserveTextObserveWidget, constantValueObserveValue, null, null);
    //
    IObservableValue buttonObserveVisibleObserveWidget = SWTObservables.observeVisible(button);
    IObservableValue constantClassConstantObserveValue = BeansObservables.observeValue(constant, "classConstant");
    bindingContext.bindValue(buttonObserveVisibleObserveWidget, constantClassConstantObserveValue, null, null);
    //
View Full Code Here

    IObservableValue constantValueObserveValue = BeansObservables.observeValue(constant, "value");
    bindingContext.bindValue(text_1ObserveTextObserveWidget, constantValueObserveValue, null, null);
    //
    IObservableValue buttonObserveVisibleObserveWidget = SWTObservables.observeVisible(button);
    IObservableValue constantClassConstantObserveValue = BeansObservables.observeValue(constant, "classConstant");
    bindingContext.bindValue(buttonObserveVisibleObserveWidget, constantClassConstantObserveValue, null, null);
    //
    IObservableValue buttonObserveSelectionObserveWidget = SWTObservables.observeSelection(button);
    IObservableValue constantPublicObserveValue = BeansObservables.observeValue(constant, "public");
    bindingContext.bindValue(buttonObserveSelectionObserveWidget, constantPublicObserveValue, null, null);
    //
View Full Code Here

    IObservableValue constantClassConstantObserveValue = BeansObservables.observeValue(constant, "classConstant");
    bindingContext.bindValue(buttonObserveVisibleObserveWidget, constantClassConstantObserveValue, null, null);
    //
    IObservableValue buttonObserveSelectionObserveWidget = SWTObservables.observeSelection(button);
    IObservableValue constantPublicObserveValue = BeansObservables.observeValue(constant, "public");
    bindingContext.bindValue(buttonObserveSelectionObserveWidget, constantPublicObserveValue, null, null);
    //
    IObservableValue buttonObserveVisibleObserveWidget_1 = SWTObservables.observeVisible(button);
    IObservableValue constantReadWriteObserveValue = BeansObservables.observeValue(constant, "readWrite");
    bindingContext.bindValue(buttonObserveVisibleObserveWidget_1, constantReadWriteObserveValue, null, null);
    //
View Full Code Here

    IObservableValue constantPublicObserveValue = BeansObservables.observeValue(constant, "public");
    bindingContext.bindValue(buttonObserveSelectionObserveWidget, constantPublicObserveValue, null, null);
    //
    IObservableValue buttonObserveVisibleObserveWidget_1 = SWTObservables.observeVisible(button);
    IObservableValue constantReadWriteObserveValue = BeansObservables.observeValue(constant, "readWrite");
    bindingContext.bindValue(buttonObserveVisibleObserveWidget_1, constantReadWriteObserveValue, null, null);
    //
    IObservableValue typeComboObserveSelectionObserveWidget = SWTObservables.observeSelection(typeCombo);
    IObservableValue constantTypeObserveValue = BeansObservables.observeValue(constant, "type");
    bindingContext.bindValue(typeComboObserveSelectionObserveWidget, constantTypeObserveValue, null, null);
    //
View Full Code Here

    IObservableValue constantReadWriteObserveValue = BeansObservables.observeValue(constant, "readWrite");
    bindingContext.bindValue(buttonObserveVisibleObserveWidget_1, constantReadWriteObserveValue, null, null);
    //
    IObservableValue typeComboObserveSelectionObserveWidget = SWTObservables.observeSelection(typeCombo);
    IObservableValue constantTypeObserveValue = BeansObservables.observeValue(constant, "type");
    bindingContext.bindValue(typeComboObserveSelectionObserveWidget, constantTypeObserveValue, null, null);
    //
    return bindingContext;
  }
}
View Full Code Here

  protected DataBindingContext initDataBindings() {
    DataBindingContext bindingContext = new DataBindingContext();
    //
    IObservableValue portTextObserveTextObserveWidget = SWTObservables.observeText(portText, SWT.Modify);
    IObservableValue dbCoordinatesPortObserveValue = PojoObservables.observeValue(dbCoordinates, "port");
    bindingContext.bindValue(portTextObserveTextObserveWidget, dbCoordinatesPortObserveValue, null, null);
    //
    IObservableValue dbNameTextObserveTextObserveWidget = SWTObservables.observeText(dbNameText, SWT.Modify);
    IObservableValue dbCoordinatesNameObserveValue = PojoObservables.observeValue(dbCoordinates, "name");
    bindingContext.bindValue(dbNameTextObserveTextObserveWidget, dbCoordinatesNameObserveValue, null, null);
    //
View Full Code Here

    IObservableValue dbCoordinatesPortObserveValue = PojoObservables.observeValue(dbCoordinates, "port");
    bindingContext.bindValue(portTextObserveTextObserveWidget, dbCoordinatesPortObserveValue, null, null);
    //
    IObservableValue dbNameTextObserveTextObserveWidget = SWTObservables.observeText(dbNameText, SWT.Modify);
    IObservableValue dbCoordinatesNameObserveValue = PojoObservables.observeValue(dbCoordinates, "name");
    bindingContext.bindValue(dbNameTextObserveTextObserveWidget, dbCoordinatesNameObserveValue, null, null);
    //
    IObservableValue hostNameTextObserveTextObserveWidget = SWTObservables.observeText(hostNameText, SWT.Modify);
    IObservableValue dbCoordinatesHostNameObserveValue = PojoObservables.observeValue(dbCoordinates, "hostName");
    bindingContext.bindValue(hostNameTextObserveTextObserveWidget, dbCoordinatesHostNameObserveValue, 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.