Package org.eclipse.emf.edit.provider

Examples of org.eclipse.emf.edit.provider.ComposedImage


 
  @Test
  public void getImageWithNullName() {
    Object image = contactItemProvider.getImage(contact);
    assertTrue("Image should be a URL", image instanceof ComposedImage);
    ComposedImage composedImage = (ComposedImage) image;
    List<Object> images = composedImage.getImages();
    assertEquals(2, images.size());
   
    // check the base image
    Object baseImage = images.get(0);
    assertTrue("Image should be a URL", baseImage instanceof URL);
View Full Code Here


    if (diagnostic.getSeverity() != Diagnostic.OK) {
      Object overlayImage = getResourceLocator().getImage("silk/bullet_error.png");
      ArrayList<Object> images = new ArrayList<Object>(2);
      images.add(baseImage);
      images.add(overlayImage);
      return new ComposedImage(images);
    }

    return overlayImage(object, baseImage);
  }
View Full Code Here

TOP

Related Classes of org.eclipse.emf.edit.provider.ComposedImage

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.