Package org.eclipse.help.ui.internal
Class HelpUIResources
java.lang.Object
org.eclipse.help.ui.internal.HelpUIResources
Uses a resource bundle to load images and strings from a property file. This
class needs to properly use the desired locale.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ImagegetIconImage(String key) Returns an icon image from a property filestatic ImageDescriptorgetIconImageDescriptor(String bundleId, String path, String key) static ImageReturns an image from a property filestatic Imagestatic ImageDescriptorgetImageDescriptor(String name) Returns an image descriptor from a property filestatic ImageDescriptorgetImageDescriptor(String bundleId, String name) static ImagegetImageFromId(String iconId, boolean isOpen, boolean isLeaf) Get the image for an icon based upon the idstatic URLgetImagePath(String name) Returns a string from a property file
-
Constructor Details
-
HelpUIResources
public HelpUIResources()WorkbenchResources constructor comment.
-
-
Method Details
-
getImagePath
Returns a string from a property file -
getImageDescriptor
Returns an image descriptor from a property file- Parameters:
name- simple image file name- Returns:
- the descriptor
-
getImageDescriptor
-
getIconImageDescriptor
-
getIconImage
Returns an icon image from a property file- Parameters:
key- simple image file name- Returns:
- the new image or
nullif image could not be created
-
getImageFromId
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 returnedisOpen- true if this is an expanded containerisLeaf- true if this node has no children- Returns:
- a valid image or null if no image found
-
getImage
Returns an image from a property file- Parameters:
name- simple image file name- Returns:
- the new image or
nullif image could not be created
-
getImage
-