Package com.google.gdt.eclipse.designer.model.widgets

Examples of com.google.gdt.eclipse.designer.model.widgets.ImageBundleInfo


            "    RootPanel rootPanel = RootPanel.get();",
            "  }",
            "}");
    // check prototypes
    {
      ImageBundleInfo bundle = ImageBundleContainerInfo.getBundles(frame).get(0);
      List<ImageBundlePrototypeDescription> prototypes = bundle.getPrototypes();
      assertThat(prototypes).hasSize(4);
      for (ImageBundlePrototypeDescription prototype : prototypes) {
        assertSame(bundle, prototype.getBundle());
        // first(), no @Resource
        if (prototype.getMethod().getName().equals("first")) {
View Full Code Here


    Expression secondExpression =
        ((MethodInvocation) images.get(1).getCreationSupport().getNode()).getExpression();
    // prepare prototypes
    List<ImageBundlePrototypeDescription> prototypes;
    {
      ImageBundleInfo bundle = ImageBundleContainerInfo.getBundles(frame).get(0);
      prototypes = bundle.getPrototypes();
      assertThat(prototypes).hasSize(2);
    }
    // check prototypes
    assertFalse(prototypes.get(0).isRepresentedBy(null));
    assertTrue(prototypes.get(0).isRepresentedBy(firstExpression));
View Full Code Here

    frame.refresh();
    assertNoErrors(frame);
    // prepare prototype
    ImageBundlePrototypeDescription prototype;
    {
      ImageBundleInfo bundle = ImageBundleContainerInfo.getBundles(frame).get(0);
      List<ImageBundlePrototypeDescription> prototypes = bundle.getPrototypes();
      prototype = prototypes.get(0);
    }
    // create new Image
    ImageInfo newImage = prototype.createImageWidget();
    newImage.putArbitraryValue(JavaInfo.FLAG_MANUAL_COMPONENT, Boolean.TRUE);
View Full Code Here

            "}");
    assertNoErrors(frame);
    // prepare prototype
    ImageBundlePrototypeDescription prototype;
    {
      ImageBundleInfo bundle = ImageBundleContainerInfo.getBundles(frame).get(0);
      List<ImageBundlePrototypeDescription> prototypes = bundle.getPrototypes();
      prototype = prototypes.get(0);
    }
    // prepare category/entries
    CategoryInfo category = new CategoryInfo();
    category.setId("com.google.gdt.eclipse.designer.ImageBundle");
View Full Code Here

      Property bundleProperty = getPropertyByTitle(getSubProperties(imageProperty), "as Bundle");
      assertTrue(bundleProperty.isModified());
      assertEquals("first() from test.client.MyImageBundle", getPropertyText(bundleProperty));
      // set second()
      {
        ImageBundleInfo bundle = ImageBundleContainerInfo.getBundles(frame).get(0);
        ImageBundlePrototypeDescription prototype = bundle.getPrototypes().get(1);
        assertEquals("second", prototype.getMethod().getName());
        bundleProperty.setValue(prototype);
      }
      assertEditor(
          "public class Test implements EntryPoint {",
View Full Code Here

TOP

Related Classes of com.google.gdt.eclipse.designer.model.widgets.ImageBundleInfo

Copyright © 2018 www.massapicom. 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.