Examples of IBindingContext


Examples of org.eclipse.e4.xwt.databinding.IBindingContext

    return observableValue;
  }

  private BindingGate getBindingGate() {
    if (this.bindingGate == null) {
      IBindingContext dataBindingContext = XWT
          .getBindingContext(getControl());
      this.bindingGate = new BindingGate(dataBindingContext);
    }

    return this.bindingGate;
View Full Code Here

Examples of org.eclipse.e4.xwt.databinding.IBindingContext

    // throw an exception or log a message?
  }

  public static IBindingContext createBindingContext(Object host) {
    Widget widget = getWidget(host);
    final IBindingContext dataBindingContext = new BindingContext(
        widget);
    dataBindingContext.setRealm(XWT.getRealm());
    widget.addDisposeListener(new DisposeListener() {

      public void widgetDisposed(DisposeEvent e) {
        dataBindingContext.dispose();
      }
    });

    UserData.setLocalData(host,
        IUserDataConstants.XWT_BINDING_CONTEXT_KEY,
View Full Code Here

Examples of org.eclipse.e4.xwt.databinding.IBindingContext

   * @see
   * org.eclipse.e4.xwt.IXWTLoader#getDataBindingContext(java.lang.Object,
   * java.lang.String)
   */
  public IBindingContext getBindingContext(Object element) {
    IBindingContext dataBindingContext = UserData
        .getBindingContext(element);
    if (dataBindingContext == null) {
      dataBindingContext = UserData.createBindingContext(element);
    }
    return dataBindingContext;
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.