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
-
Method Summary
Modifier and TypeMethodDescriptionstatic Image
getIconImage
(String key) Returns an icon image from a property filestatic ImageDescriptor
getIconImageDescriptor
(String bundleId, String path, String key) static Image
Returns an image from a property filestatic Image
static ImageDescriptor
getImageDescriptor
(String name) Returns an image descriptor from a property filestatic ImageDescriptor
getImageDescriptor
(String bundleId, String name) static Image
getImageFromId
(String iconId, boolean isOpen, boolean isLeaf) Get the image for an icon based upon the idstatic URL
getImagePath
(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
null
if 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
null
if image could not be created
-
getImage
-