Examples of BadgedImageDescriptor


Examples of org.springframework.ide.eclipse.config.graph.BadgedImageDescriptor

  public static Image getImageWithBadge(ImageDescriptor descriptor, ImageDescriptor badge) {
    String key = "" + descriptor.hashCode(); //$NON-NLS-1$
    key += badge.hashCode();
    ImageDescriptor cache = getImageRegistry().getDescriptor(key);
    if (cache == null) {
      cache = new BadgedImageDescriptor(descriptor, badge, false, false);
      getImageRegistry().put(key, cache);
    }
    return CommonImages.getImage(cache);
  }
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.