Package org.eclipse.core.databinding

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


    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);
    //
    IObservableValue btnWindowClassObserveSelectionObserveWidget = SWTObservables.observeSelection(btnWindowClass);
    IObservableValue clsMappedObserveValue = BeansObservables.observeValue(cls, "mapped");
    bindingContext.bindValue(btnWindowClassObserveSelectionObserveWidget, clsMappedObserveValue, null, null);
    //
View Full Code Here


    IObservableValue clsNameObserveValue = BeansObservables.observeValue(cls, "toolName");
    bindingContext.bindValue(classNameTextObserveTextObserveWidget, clsNameObserveValue, null, null);
    //
    IObservableValue btnWindowClassObserveSelectionObserveWidget = SWTObservables.observeSelection(btnWindowClass);
    IObservableValue clsMappedObserveValue = BeansObservables.observeValue(cls, "mapped");
    bindingContext.bindValue(btnWindowClassObserveSelectionObserveWidget, clsMappedObserveValue, null, null);
    //
    IObservableValue superClassTextObserveTextObserveWidget = SWTObservables.observeText(superClassText, SWT.FocusOut);
    IObservableValue clsSuperClassObserveValue = BeansObservables.observeValue(cls, "superClass");
    bindingContext.bindValue(superClassTextObserveTextObserveWidget, clsSuperClassObserveValue, null, null);
    //
View Full Code Here

    IObservableValue clsMappedObserveValue = BeansObservables.observeValue(cls, "mapped");
    bindingContext.bindValue(btnWindowClassObserveSelectionObserveWidget, clsMappedObserveValue, null, null);
    //
    IObservableValue superClassTextObserveTextObserveWidget = SWTObservables.observeText(superClassText, SWT.FocusOut);
    IObservableValue clsSuperClassObserveValue = BeansObservables.observeValue(cls, "superClass");
    bindingContext.bindValue(superClassTextObserveTextObserveWidget, clsSuperClassObserveValue, null, null);
    //
    return bindingContext;
  }
}
View Full Code Here

    //
    IObservableValue textObserveTextObserveWidget = SWTObservables.observeText(text, SWT.Modify);
    IObservableValue eventNameObserveValue = BeansObservables.observeValue(event, "toolName");
    UpdateValueStrategy strategy = new UpdateValueStrategy();
    strategy.setAfterConvertValidator(new ToolNameValidator(text));
    bindingContext.bindValue(textObserveTextObserveWidget, eventNameObserveValue, strategy, null);
    //
    IObservableValue buttonObserveSelectionObserveWidget = SWTObservables.observeSelection(button);
    IObservableValue eventPublicObserveValue = BeansObservables.observeValue(event, "public");
    bindingContext.bindValue(buttonObserveSelectionObserveWidget, eventPublicObserveValue, null, null);
    //
View Full Code Here

    strategy.setAfterConvertValidator(new ToolNameValidator(text));
    bindingContext.bindValue(textObserveTextObserveWidget, eventNameObserveValue, strategy, null);
    //
    IObservableValue buttonObserveSelectionObserveWidget = SWTObservables.observeSelection(button);
    IObservableValue eventPublicObserveValue = BeansObservables.observeValue(event, "public");
    bindingContext.bindValue(buttonObserveSelectionObserveWidget, eventPublicObserveValue, null, null);
    //
    ObservableListContentProvider listContentProvider = new ObservableListContentProvider();
    tableViewer.setContentProvider(listContentProvider);
    //
    IObservableMap[] observeMaps = BeansObservables.observeMaps(listContentProvider.getKnownElements(), ToolParameter.class, new String[]{"name", "type", "parsingType", "defaultValue"});
View Full Code Here

  protected DataBindingContext initDataBindings() {
    DataBindingContext bindingContext = new DataBindingContext();
    //
    IObservableValue soClassTextObserveTextObserveWidget = SWTObservables.observeText(soClassText, SWT.Modify);
    IObservableValue soTypeObserveValue = BeansObservables.observeValue(so, "type");
    bindingContext.bindValue(soClassTextObserveTextObserveWidget, soTypeObserveValue, null, null);
    //
    IObservableValue dialogDurationComboObserveSelectionObserveWidget = SWTObservables.observeSelection(dialogDurationCombo);
    IObservableValue soDialogDurationObserveValue = BeansObservables.observeValue(so, "dialogDuration");
    bindingContext.bindValue(dialogDurationComboObserveSelectionObserveWidget, soDialogDurationObserveValue, null, null);
    //
View Full Code Here

    IObservableValue soTypeObserveValue = BeansObservables.observeValue(so, "type");
    bindingContext.bindValue(soClassTextObserveTextObserveWidget, soTypeObserveValue, null, null);
    //
    IObservableValue dialogDurationComboObserveSelectionObserveWidget = SWTObservables.observeSelection(dialogDurationCombo);
    IObservableValue soDialogDurationObserveValue = BeansObservables.observeValue(so, "dialogDuration");
    bindingContext.bindValue(dialogDurationComboObserveSelectionObserveWidget, soDialogDurationObserveValue, null, null);
    //
    IObservableValue uUIDTextObserveTextObserveWidget = SWTObservables.observeText(UUIDText, SWT.NONE);
    IObservableValue soUuidObserveValue = BeansObservables.observeValue(so, "uuid");
    bindingContext.bindValue(uUIDTextObserveTextObserveWidget, soUuidObserveValue, null, null);
    //
View Full Code Here

    IObservableValue soDialogDurationObserveValue = BeansObservables.observeValue(so, "dialogDuration");
    bindingContext.bindValue(dialogDurationComboObserveSelectionObserveWidget, soDialogDurationObserveValue, null, null);
    //
    IObservableValue uUIDTextObserveTextObserveWidget = SWTObservables.observeText(UUIDText, SWT.NONE);
    IObservableValue soUuidObserveValue = BeansObservables.observeValue(so, "uuid");
    bindingContext.bindValue(uUIDTextObserveTextObserveWidget, soUuidObserveValue, null, null);
    //
    IObservableValue visabilityComboObserveSelectionObserveWidget = SWTObservables.observeSelection(visabilityCombo);
    IObservableValue soVisabilityObserveValue = BeansObservables.observeValue(so, "visability");
    bindingContext.bindValue(visabilityComboObserveSelectionObserveWidget, soVisabilityObserveValue, null, null);
    //
View Full Code Here

    IObservableValue soUuidObserveValue = BeansObservables.observeValue(so, "uuid");
    bindingContext.bindValue(uUIDTextObserveTextObserveWidget, soUuidObserveValue, null, null);
    //
    IObservableValue visabilityComboObserveSelectionObserveWidget = SWTObservables.observeSelection(visabilityCombo);
    IObservableValue soVisabilityObserveValue = BeansObservables.observeValue(so, "visability");
    bindingContext.bindValue(visabilityComboObserveSelectionObserveWidget, soVisabilityObserveValue, null, null);
    //
    IObservableValue btnLoadBalancedObserveSelectionObserveWidget = SWTObservables.observeSelection(btnLoadBalanced);
    IObservableValue soLoadBalanceObserveValue = BeansObservables.observeValue(so, "loadBalance");
    bindingContext.bindValue(btnLoadBalancedObserveSelectionObserveWidget, soLoadBalanceObserveValue, null, null);
    //
View Full Code Here

    IObservableValue soVisabilityObserveValue = BeansObservables.observeValue(so, "visability");
    bindingContext.bindValue(visabilityComboObserveSelectionObserveWidget, soVisabilityObserveValue, null, null);
    //
    IObservableValue btnLoadBalancedObserveSelectionObserveWidget = SWTObservables.observeSelection(btnLoadBalanced);
    IObservableValue soLoadBalanceObserveValue = BeansObservables.observeValue(so, "loadBalance");
    bindingContext.bindValue(btnLoadBalancedObserveSelectionObserveWidget, soLoadBalanceObserveValue, null, null);
    //
    IObservableValue soNameTextObserveTextObserveWidget = SWTObservables.observeText(soNameText, SWT.Modify);
    IObservableValue soToolNameObserveValue = BeansObservables.observeValue(so, "toolName");
    UpdateValueStrategy strategy = new UpdateValueStrategy();
    strategy.setAfterConvertValidator(new ToolNameValidator(soNameText));
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.