Examples of BindingContext


Examples of org.apache.ode.bpel.iapi.BindingContext

        };
        return _mexContext;
    }

    protected BindingContext createBindingContext() {
        _bindContext = new BindingContext() {
            public EndpointReference activateMyRoleEndpoint(QName processId, Endpoint myRoleEndpoint) {
                final Document doc = DOMUtils.newDocument();
                Element serviceRef = doc.createElementNS(EndpointReference.SERVICE_REF_QNAME.getNamespaceURI(),
                    EndpointReference.SERVICE_REF_QNAME.getLocalPart());
                serviceRef.appendChild(doc.createTextNode(myRoleEndpoint.serviceName.toString()));
View Full Code Here

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

  @Override
  protected Control createDialogArea(Composite parent) {
    Control control = super.createDialogArea(parent);

    if (bindingContext == null) {
      bindingContext = new BindingContext(parent);
    }
    validationStatus = bindingContext.getStatus();
    validationStatus.addChangeListener(new IChangeListener() {
      public void handleChange(ChangeEvent event) {
        IStatus status = (IStatus) validationStatus.getValue();
        setMessage(status.getMessage(), status.getSeverity());
      }
    });

    ClassLoader classLoader = Thread.currentThread()
        .getContextClassLoader();
    try {
      Thread.currentThread().setContextClassLoader(
          contentCLS.getClassLoader());
      HashMap<String, Object> newOptions = new HashMap<String, Object>();
      newOptions.put(XWTLoader.CONTAINER_PROPERTY, parent);
      Object dataContext = getDataContext();
      if (dataContext != null) {
        newOptions.put(XWTLoader.DATACONTEXT_PROPERTY, dataContext);
      }
      BindingContext bindingContext = getBindingContext();
      if (bindingContext != null) {
        newOptions.put(XWTLoader.BINDING_CONTEXT_PROPERTY,
            bindingContext);
      }
      newOptions.put(XWTLoader.CLASS_PROPERTY, contentCLS);
View Full Code Here

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

    // 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.exoplatform.groovyscript.text.BindingContext

      return rcontext_;
   }

   public BindingContext clone()
   {
      BindingContext newContext = new WebuiBindingContext(resolver_, writer_, uicomponent_, rcontext_);
      newContext.putAll(this);
      newContext.setGroovyTemplateService(service_);
      return newContext;
   }
View Full Code Here

Examples of org.exoplatform.groovyscript.text.BindingContext

    public String getPortalContextPath() {
        return rcontext_.getPortalContextPath();
    }

    public BindingContext clone() {
        BindingContext newContext = new WebuiBindingContext(resolver_, writer_, uicomponent_, rcontext_);
        newContext.putAll(this);
        newContext.setGroovyTemplateService(service_);
        return newContext;
    }
View Full Code Here

Examples of org.exoplatform.groovyscript.text.BindingContext

      return rcontext_.getPortalContextPath();
   }

   public BindingContext clone()
   {
      BindingContext newContext = new WebuiBindingContext(resolver_, writer_, uicomponent_, rcontext_);
      newContext.putAll(this);
      newContext.setGroovyTemplateService(service_);
      return newContext;
   }
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.