Examples of ImageDescriptor


Examples of org.eclipse.jface.resource.ImageDescriptor

    this.cloudServer = cloudServer;

    setTitle(Messages.MappedURLsWizardPage_TITLE_MAPPED_URI_CONFIG);
    setDescription(Messages.MappedURLsWizardPage_TEST_FINISH);
    ImageDescriptor banner = CloudFoundryImages.getWizardBanner(cloudServer.getServer().getServerType().getId());
    if (banner != null) {
      setImageDescriptor(banner);
    }
  }
View Full Code Here

Examples of org.springframework.samples.imagedb.ImageDescriptor

  public void listImages(int nrOfCalls) throws IOException {
    List images = this.imageDatabase.getImages();
    StopWatch stopWatch = new StopWatch();
    for (Iterator it = images.iterator(); it.hasNext();) {
      ImageDescriptor image = (ImageDescriptor) it.next();
      stopWatch.start(image.getName());
      ByteArrayOutputStream os = null;
      for (int i = 0; i < nrOfCalls; i++) {
        os = new ByteArrayOutputStream();
        this.imageDatabase.streamImage(image.getName(), os);
      }
      stopWatch.stop();
      System.out.println("Found image '" + image.getName() + "' with content size " + os.size() +
          " and description length " + image.getDescriptionLength());
    }
    System.out.println(stopWatch.prettyPrint());
  }
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.