Package org.eclipse.core.databinding

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


    IObservableValue modelRestrictedObserveValue = BeansObservables.observeValue(model, "restricted");
    bindingContext.bindValue(btnCheckButtonObserveSelectionObserveWidget, modelRestrictedObserveValue, null, null);
    //
    IObservableValue btnMultithreadedObserveSelectionObserveWidget = SWTObservables.observeSelection(btnMultithreaded);
    IObservableValue modelMultiThreadedObserveValue = BeansObservables.observeValue(model, "multiThreaded");
    bindingContext.bindValue(btnMultithreadedObserveSelectionObserveWidget, modelMultiThreadedObserveValue, null, null);
    //
    IObservableValue btnInternalObserveSelectionObserveWidget = SWTObservables.observeSelection(btnInternal);
    IObservableValue modelInternalObserveValue = BeansObservables.observeValue(model, "internal");
    bindingContext.bindValue(btnInternalObserveSelectionObserveWidget, modelInternalObserveValue, null, null);
    //
View Full Code Here


    IObservableValue modelMultiThreadedObserveValue = BeansObservables.observeValue(model, "multiThreaded");
    bindingContext.bindValue(btnMultithreadedObserveSelectionObserveWidget, modelMultiThreadedObserveValue, null, null);
    //
    IObservableValue btnInternalObserveSelectionObserveWidget = SWTObservables.observeSelection(btnInternal);
    IObservableValue modelInternalObserveValue = BeansObservables.observeValue(model, "internal");
    bindingContext.bindValue(btnInternalObserveSelectionObserveWidget, modelInternalObserveValue, null, null);
    //
    IObservableValue comboObserveSelectionObserveWidget = SWTObservables.observeSelection(combo);
    IObservableValue modelProjectTypeObserveValue = BeansObservables.observeValue(model, "projectType");
    bindingContext.bindValue(comboObserveSelectionObserveWidget, modelProjectTypeObserveValue, null, null);
    //
View Full Code Here

    IObservableValue modelInternalObserveValue = BeansObservables.observeValue(model, "internal");
    bindingContext.bindValue(btnInternalObserveSelectionObserveWidget, modelInternalObserveValue, null, null);
    //
    IObservableValue comboObserveSelectionObserveWidget = SWTObservables.observeSelection(combo);
    IObservableValue modelProjectTypeObserveValue = BeansObservables.observeValue(model, "projectType");
    bindingContext.bindValue(comboObserveSelectionObserveWidget, modelProjectTypeObserveValue, null, null);
    //
    return bindingContext;
  }
}
View Full Code Here

    //
    IObservableValue nameTextObserveTextObserveWidget = SWTObservables.observeText(nameText, SWT.Modify);
    IObservableValue methodNameObserveValue = BeansObservables.observeValue(method, "name");
    UpdateValueStrategy strategy = new UpdateValueStrategy();
    strategy.setAfterConvertValidator(new ToolNameValidator(this.nameText));
    bindingContext.bindValue(nameTextObserveTextObserveWidget, methodNameObserveValue, strategy, null);
    //
    IObservableValue returnTypeTextObserveTextObserveWidget = SWTObservables.observeText(returnTypeText, SWT.Modify);
    IObservableValue methodReturnTypeObserveValue = BeansObservables.observeValue(method, "returnType");
    bindingContext.bindValue(returnTypeTextObserveTextObserveWidget, methodReturnTypeObserveValue, null, null);
    //
View Full Code Here

    strategy.setAfterConvertValidator(new ToolNameValidator(this.nameText));
    bindingContext.bindValue(nameTextObserveTextObserveWidget, methodNameObserveValue, strategy, null);
    //
    IObservableValue returnTypeTextObserveTextObserveWidget = SWTObservables.observeText(returnTypeText, SWT.Modify);
    IObservableValue methodReturnTypeObserveValue = BeansObservables.observeValue(method, "returnType");
    bindingContext.bindValue(returnTypeTextObserveTextObserveWidget, methodReturnTypeObserveValue, null, null);
    //
    IObservableValue publicCheckButtonObserveSelectionObserveWidget = SWTObservables.observeSelection(publicCheckButton);
    IObservableValue methodPublicObserveValue = BeansObservables.observeValue(method, "public");
    bindingContext.bindValue(publicCheckButtonObserveSelectionObserveWidget, methodPublicObserveValue, null, null);
    //
View Full Code Here

    IObservableValue methodReturnTypeObserveValue = BeansObservables.observeValue(method, "returnType");
    bindingContext.bindValue(returnTypeTextObserveTextObserveWidget, methodReturnTypeObserveValue, null, null);
    //
    IObservableValue publicCheckButtonObserveSelectionObserveWidget = SWTObservables.observeSelection(publicCheckButton);
    IObservableValue methodPublicObserveValue = BeansObservables.observeValue(method, "public");
    bindingContext.bindValue(publicCheckButtonObserveSelectionObserveWidget, methodPublicObserveValue, null, null);
    //
    IObservableValue btnCheckButtonObserveSelectionObserveWidget = SWTObservables.observeSelection(btnCheckButton);
    IObservableValue methodCopyReturnObserveValue = BeansObservables.observeValue(method, "copyReturn");
    bindingContext.bindValue(btnCheckButtonObserveSelectionObserveWidget, methodCopyReturnObserveValue, null, null);
    //
View Full Code Here

    IObservableValue methodPublicObserveValue = BeansObservables.observeValue(method, "public");
    bindingContext.bindValue(publicCheckButtonObserveSelectionObserveWidget, methodPublicObserveValue, null, null);
    //
    IObservableValue btnCheckButtonObserveSelectionObserveWidget = SWTObservables.observeSelection(btnCheckButton);
    IObservableValue methodCopyReturnObserveValue = BeansObservables.observeValue(method, "copyReturn");
    bindingContext.bindValue(btnCheckButtonObserveSelectionObserveWidget, methodCopyReturnObserveValue, null, null);
    //
    IObservableValue returnEventTextObserveTextObserveWidget = SWTObservables.observeText(returnEventText, SWT.Modify);
    IObservableValue methodReturnEventObserveValue = BeansObservables.observeValue(method, "returnEvent");
    UpdateValueStrategy strategy_2 = new UpdateValueStrategy();
    strategy_2.setAfterConvertValidator(new ToolNameAllowBlankValidator(returnEventText));
View Full Code Here

    //
    IObservableValue returnEventTextObserveTextObserveWidget = SWTObservables.observeText(returnEventText, SWT.Modify);
    IObservableValue methodReturnEventObserveValue = BeansObservables.observeValue(method, "returnEvent");
    UpdateValueStrategy strategy_2 = new UpdateValueStrategy();
    strategy_2.setAfterConvertValidator(new ToolNameAllowBlankValidator(returnEventText));
    bindingContext.bindValue(returnEventTextObserveTextObserveWidget, methodReturnEventObserveValue, strategy_2, null);
    //
    IObservableValue exceptionEventTextObserveTextObserveWidget = SWTObservables.observeText(exceptionEventText, SWT.Modify);
    IObservableValue methodExceptionEventObserveValue = BeansObservables.observeValue(method, "exceptionEvent");
    UpdateValueStrategy strategy_3 = new UpdateValueStrategy();
    strategy_3.setAfterConvertValidator(new ToolNameAllowBlankValidator(exceptionEventText));
View Full Code Here

    //
    IObservableValue exceptionEventTextObserveTextObserveWidget = SWTObservables.observeText(exceptionEventText, SWT.Modify);
    IObservableValue methodExceptionEventObserveValue = BeansObservables.observeValue(method, "exceptionEvent");
    UpdateValueStrategy strategy_3 = new UpdateValueStrategy();
    strategy_3.setAfterConvertValidator(new ToolNameAllowBlankValidator(exceptionEventText));
    bindingContext.bindValue(exceptionEventTextObserveTextObserveWidget, methodExceptionEventObserveValue, strategy_3, null);
    //
    //
    ObservableListContentProvider listContentProvider = new ObservableListContentProvider();
    tableViewer.setContentProvider(listContentProvider);
    //
View Full Code Here

  protected DataBindingContext initDataBindings() {
    DataBindingContext bindingContext = new DataBindingContext();
    //
    IObservableValue nameTextObserveTextObserveWidget = SWTObservables.observeText(nameText, SWT.Modify);
    IObservableValue attributeNameObserveValue = BeansObservables.observeValue(attribute, "toolName");
    bindingContext.bindValue(nameTextObserveTextObserveWidget, attributeNameObserveValue, null, null);
    //
    IObservableValue typeTextObserveTextObserveWidget = SWTObservables.observeText(typeText, SWT.Modify);
    IObservableValue attributeTypeObserveValue = BeansObservables.observeValue(attribute, "type");
    bindingContext.bindValue(typeTextObserveTextObserveWidget, attributeTypeObserveValue, 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.