Class HelpUIResources

java.lang.Object
org.eclipse.help.ui.internal.HelpUIResources

public class HelpUIResources extends Object
Uses a resource bundle to load images and strings from a property file. This class needs to properly use the desired locale.
  • Constructor Details

    • HelpUIResources

      public HelpUIResources()
      WorkbenchResources constructor comment.
  • Method Details

    • getImagePath

      public static URL getImagePath(String name)
      Returns a string from a property file
    • getImageDescriptor

      public static ImageDescriptor getImageDescriptor(String name)
      Returns an image descriptor from a property file
      Parameters:
      name - simple image file name
      Returns:
      the descriptor
    • getImageDescriptor

      public static ImageDescriptor getImageDescriptor(String bundleId, String name)
    • getIconImageDescriptor

      public static ImageDescriptor getIconImageDescriptor(String bundleId, String path, String key)
    • getIconImage

      public static Image getIconImage(String key)
      Returns an icon image from a property file
      Parameters:
      key - simple image file name
      Returns:
      the new image or null if image could not be created
    • getImageFromId

      public static Image getImageFromId(String iconId, boolean isOpen, boolean isLeaf)
      Get the image for an icon based upon the id
      Parameters:
      iconId - The id of the icon, may be null, if so a null image is returned
      isOpen - true if this is an expanded container
      isLeaf - true if this node has no children
      Returns:
      a valid image or null if no image found
    • getImage

      public static Image getImage(String name)
      Returns an image from a property file
      Parameters:
      name - simple image file name
      Returns:
      the new image or null if image could not be created
    • getImage

      public static Image getImage(URL url)