Package org.eclipse.core.databinding

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


    IObservableValue virtualAttributePublicObserveValue = BeansObservables.observeValue(virtualAttribute, "public");
    bindingContext.bindValue(btnCheckButtonObserveSelectionObserveWidget, virtualAttributePublicObserveValue, null, null);
    //
    IObservableValue typeTextObserveTextObserveWidget = SWTObservables.observeText(typeText, SWT.Modify);
    IObservableValue virtualAttributeTypeObserveValue = BeansObservables.observeValue(virtualAttribute, "type");
    bindingContext.bindValue(typeTextObserveTextObserveWidget, virtualAttributeTypeObserveValue, null, null);
    //
    IObservableValue getExpressionTextObserveTextObserveWidget = SWTObservables.observeText(getExpressionText, SWT.Modify);
    IObservableValue virtualAttributeGetExpressionObserveValue = BeansObservables.observeValue(virtualAttribute, "getExpression");
    bindingContext.bindValue(getExpressionTextObserveTextObserveWidget, virtualAttributeGetExpressionObserveValue, null, null);
    //
View Full Code Here


    IObservableValue virtualAttributeTypeObserveValue = BeansObservables.observeValue(virtualAttribute, "type");
    bindingContext.bindValue(typeTextObserveTextObserveWidget, virtualAttributeTypeObserveValue, null, null);
    //
    IObservableValue getExpressionTextObserveTextObserveWidget = SWTObservables.observeText(getExpressionText, SWT.Modify);
    IObservableValue virtualAttributeGetExpressionObserveValue = BeansObservables.observeValue(virtualAttribute, "getExpression");
    bindingContext.bindValue(getExpressionTextObserveTextObserveWidget, virtualAttributeGetExpressionObserveValue, null, null);
    //
    IObservableValue textObserveTextObserveWidget = SWTObservables.observeText(text, SWT.Modify);
    IObservableValue virtualAttributeSetExpressionObserveValue = BeansObservables.observeValue(virtualAttribute, "setExpression");
    bindingContext.bindValue(textObserveTextObserveWidget, virtualAttributeSetExpressionObserveValue, null, null);
    //
View Full Code Here

    IObservableValue virtualAttributeGetExpressionObserveValue = BeansObservables.observeValue(virtualAttribute, "getExpression");
    bindingContext.bindValue(getExpressionTextObserveTextObserveWidget, virtualAttributeGetExpressionObserveValue, null, null);
    //
    IObservableValue textObserveTextObserveWidget = SWTObservables.observeText(text, SWT.Modify);
    IObservableValue virtualAttributeSetExpressionObserveValue = BeansObservables.observeValue(virtualAttribute, "setExpression");
    bindingContext.bindValue(textObserveTextObserveWidget, virtualAttributeSetExpressionObserveValue, null, null);
    //
    IObservableValue nameTextObserveTextObserveWidget = SWTObservables.observeText(nameText, SWT.Modify);
    IObservableValue virtualAttributeNameObserveValue = BeansObservables.observeValue(virtualAttribute, "toolName");
    UpdateValueStrategy strategy = new UpdateValueStrategy();
    strategy.setAfterConvertValidator(new ToolNameValidator(nameText));
View Full Code Here

    //
    IObservableValue nameTextObserveTextObserveWidget = SWTObservables.observeText(nameText, SWT.Modify);
    IObservableValue virtualAttributeNameObserveValue = BeansObservables.observeValue(virtualAttribute, "toolName");
    UpdateValueStrategy strategy = new UpdateValueStrategy();
    strategy.setAfterConvertValidator(new ToolNameValidator(nameText));
    bindingContext.bindValue(nameTextObserveTextObserveWidget, virtualAttributeNameObserveValue, strategy, null);
    //
    return bindingContext;
  }
}
View Full Code Here

  protected DataBindingContext initDataBindings() {
    DataBindingContext bindingContext = new DataBindingContext();
    //
    IObservableValue nameTextObserveTextObserveWidget = SWTObservables.observeText(nameText, SWT.Modify);
    IObservableValue eventNameObserveValue = BeansObservables.observeValue(event, "toolName");
    bindingContext.bindValue(nameTextObserveTextObserveWidget, eventNameObserveValue, null, null);
    //
    IObservableValue btnPublicObserveSelectionObserveWidget = SWTObservables.observeSelection(btnPublic);
    IObservableValue eventPublicObserveValue = BeansObservables.observeValue(event, "public");
    bindingContext.bindValue(btnPublicObserveSelectionObserveWidget, eventPublicObserveValue, null, null);
    //
View Full Code Here

    IObservableValue eventNameObserveValue = BeansObservables.observeValue(event, "toolName");
    bindingContext.bindValue(nameTextObserveTextObserveWidget, eventNameObserveValue, null, null);
    //
    IObservableValue btnPublicObserveSelectionObserveWidget = SWTObservables.observeSelection(btnPublic);
    IObservableValue eventPublicObserveValue = BeansObservables.observeValue(event, "public");
    bindingContext.bindValue(btnPublicObserveSelectionObserveWidget, eventPublicObserveValue, null, null);
    //
    ObservableListContentProvider listContentProvider = new ObservableListContentProvider();
    tableViewer.setContentProvider(listContentProvider);
    //
    IObservableMap[] observeMaps = BeansObservables.observeMaps(listContentProvider.getKnownElements(), ToolParameter.class, new String[]{"name", "type", "defaultValue"});
View Full Code Here

  protected DataBindingContext initDataBindings() {
    DataBindingContext bindingContext = new DataBindingContext();
    //
    IObservableValue nameTextObserveTextObserveWidget = SWTObservables.observeText(nameText, SWT.Modify);
    IObservableValue eventNameObserveValue = BeansObservables.observeValue(event, "toolName");
    bindingContext.bindValue(nameTextObserveTextObserveWidget, eventNameObserveValue, null, null);
    //
    IObservableValue btnPublicObserveSelectionObserveWidget = SWTObservables.observeSelection(btnPublic);
    IObservableValue eventPublicObserveValue = BeansObservables.observeValue(event, "public");
    bindingContext.bindValue(btnPublicObserveSelectionObserveWidget, eventPublicObserveValue, null, null);
    //
View Full Code Here

    IObservableValue eventNameObserveValue = BeansObservables.observeValue(event, "toolName");
    bindingContext.bindValue(nameTextObserveTextObserveWidget, eventNameObserveValue, null, null);
    //
    IObservableValue btnPublicObserveSelectionObserveWidget = SWTObservables.observeSelection(btnPublic);
    IObservableValue eventPublicObserveValue = BeansObservables.observeValue(event, "public");
    bindingContext.bindValue(btnPublicObserveSelectionObserveWidget, eventPublicObserveValue, null, null);
    //
    ObservableListContentProvider listContentProvider = new ObservableListContentProvider();
    tableViewer.setContentProvider(listContentProvider);
    //
    IObservableMap[] observeMaps = BeansObservables.observeMaps(listContentProvider.getKnownElements(), ToolParameter.class, new String[]{"name", "type", "defaultValue"});
View Full Code Here

    //
    IObservableValue classNameTextObserveTextObserveWidget = SWTObservables.observeText(classNameText, SWT.Modify);
    IObservableValue cdfNameObserveValue = BeansObservables.observeValue(cdf, "toolName");
    UpdateValueStrategy strategy = new UpdateValueStrategy();
    strategy.setAfterConvertValidator(new ToolNameValidator(classNameText));
    bindingContext.bindValue(classNameTextObserveTextObserveWidget, cdfNameObserveValue, strategy, null);
    //
    IObservableValue superClassTextObserveTextObserveWidget = SWTObservables.observeText(superClassText, SWT.FocusOut);
    IObservableValue cdfSuperClassObserveValue = BeansObservables.observeValue(cdf, "superClass");
    bindingContext.bindValue(superClassTextObserveTextObserveWidget, cdfSuperClassObserveValue, null, null);
    //
View Full Code Here

    strategy.setAfterConvertValidator(new ToolNameValidator(classNameText));
    bindingContext.bindValue(classNameTextObserveTextObserveWidget, cdfNameObserveValue, strategy, null);
    //
    IObservableValue superClassTextObserveTextObserveWidget = SWTObservables.observeText(superClassText, SWT.FocusOut);
    IObservableValue cdfSuperClassObserveValue = BeansObservables.observeValue(cdf, "superClass");
    bindingContext.bindValue(superClassTextObserveTextObserveWidget, cdfSuperClassObserveValue, null, null);
    //
    IObservableValue superClassTextObserveEditableObserveWidget = SWTObservables.observeEditable(superClassText);
    IObservableValue cdfReadWriteObserveValue = BeansObservables.observeValue(cdf, "readWrite");
    bindingContext.bindValue(superClassTextObserveEditableObserveWidget, cdfReadWriteObserveValue, 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.