Examples of OpaqueCreationSupport


Examples of org.eclipse.wb.internal.core.model.creation.OpaqueCreationSupport

   * @return the new <code>Image</code> widget from this <code>AbstractImagePrototype</code>.
   */
  public ImageInfo createImageWidget() throws Exception {
    AstEditor editor = m_bundle.getEditor();
    // prepare CreationSupport
    OpaqueCreationSupport creationSupport;
    {
      String source = getImageSource();
      creationSupport = new OpaqueCreationSupport(source);
      creationSupport.setPermissions(PERMISSIONS);
    }
    // create Image model
    ImageInfo newImage =
        (ImageInfo) JavaInfoUtils.createJavaInfo(
            editor,
View Full Code Here

Examples of org.eclipse.wb.internal.core.model.creation.OpaqueCreationSupport

        && AstNodeUtils.isMethodInvocation(
            invocation,
            "com.google.gwt.user.client.ui.AbstractImagePrototype",
            "createImage()")) {
      Class<?> imageClass = getClass(editor, methodBinding.getReturnType());
      OpaqueCreationSupport creationSupport = new OpaqueCreationSupport(invocation);
      creationSupport.setPermissions(ImageBundlePrototypeDescription.PERMISSIONS);
      return JavaInfoUtils.createJavaInfo(editor, imageClass, creationSupport);
    }
    // no JavaInfo for MethodInvocation
    return null;
  }
View Full Code Here

Examples of org.eclipse.wb.internal.core.model.creation.OpaqueCreationSupport

    return ExecutionUtils.runObjectIgnore(new RunnableObjectEx<JavaInfo>() {
      public JavaInfo runObject() throws Exception {
        return JavaInfoUtils.createJavaInfo(
            editor,
            classLiteral,
            new OpaqueCreationSupport(invocation));
      }
    }, null);
  }
View Full Code Here

Examples of org.eclipse.wb.internal.core.model.creation.OpaqueCreationSupport

   * @return the added {@link ImageBundleInfo}.
   */
  public static ImageBundleInfo add(JavaInfo root, String bundleClassName) throws Exception {
    ImageBundleInfo bundle;
    {
      OpaqueCreationSupport creationSupport =
          new OpaqueCreationSupport("com.google.gwt.core.client.GWT.create("
              + bundleClassName
              + ".class)");
      bundle =
          (ImageBundleInfo) JavaInfoUtils.createJavaInfo(
              root.getEditor(),
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.