Example #1
0
 public ImageDescriptor getImageDescriptor(MUILabel element) {
   String iconURI = element.getIconURI();
   if (iconURI != null && iconURI.length() > 0) {
     return imageDescriptorFromURI(URI.createURI(iconURI));
   }
   return null;
 }
 private ImageDescriptor getImageDescriptor(MUILabel element) {
   IEclipseContext localContext = context;
   String iconURI = element.getIconURI();
   if (iconURI != null && iconURI.length() > 0) {
     ISWTResourceUtilities resUtils =
         (ISWTResourceUtilities) localContext.get(IResourceUtilities.class.getName());
     return resUtils.imageDescriptorFromURI(URI.createURI(iconURI));
   }
   return null;
 }
Example #3
0
 protected Image getImage(MUILabel element) {
   String iconURI = element.getIconURI();
   if (iconURI != null && iconURI.length() > 0) {
     Image image = imageMap.get(iconURI);
     if (image == null) {
       image = imageDescriptorFromURI(URI.createURI(iconURI)).createImage();
       imageMap.put(iconURI, image);
     }
     return image;
   }
   return null;
 }