Examples of IVisualElementLoader


Examples of org.eclipse.e4.xwt.core.IVisualElementLoader

  public void registerService(Class<?> serviceType, Object service) {
    registrations.put(serviceType, service);
  }

  protected Object createCLRElement(IRenderingContext context, Element element, Map<String, Object> options) {
    IVisualElementLoader loader = findElementLoader(element);
    if (loader != null) {
      return loader.createCLRElement(element, options);
    }
    loader = createElementLoader(context, element);
    Object visualObject = loader.createCLRElement(element, options);
    removeElementLoader(element);
    return visualObject;
  }
View Full Code Here

Examples of org.eclipse.e4.xwt.core.IVisualElementLoader

    removeElementLoader(element);
    return visualObject;
  }

  protected IVisualElementLoader findElementLoader(DocumentObject element) {
    IVisualElementLoader loader = elementsLoaders.get(element);
    if (loader != null) {
      return loader;
    }
    if (element.getParent() != null) {
      return findElementLoader(element.getParent());
View Full Code Here

Examples of org.eclipse.e4.xwt.core.IVisualElementLoader

    }
    return null;
  }

  protected IVisualElementLoader createElementLoader(IRenderingContext context, DocumentObject element) {
    IVisualElementLoader creator = loaderFactory.createElementLoader(context, xwtLoader);
    elementsLoaders.put(element, creator);
    return creator;
  }
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.