| java.lang.Object org.eclipse.ui.internal.BrandingProperties
All known Subclasses: org.eclipse.ui.internal.BundleGroupProperties, org.eclipse.ui.internal.ProductProperties,
BrandingProperties | abstract public class BrandingProperties (Code) | | The branding properties are retrieved as strings, but often used as other
types (e.g., java.net.URL s. This class provides some utility
functions for converting the string values to these well known classes. This
may be subclassed by clients that use more than just these few types.
|
Method Summary | |
public static ImageDescriptor | getImage(String value, Bundle definingBundle) Create a descriptor from the argument absolute or relative path to an
image file. | public static ImageDescriptor[] | getImages(String value, Bundle definingBundle) Returns an array of image descriptors for the given property, or
null . | public static URL[] | getURLs(String value, Bundle definingBundle) Returns a array of URL for the given property or null .
The property value should be a comma separated list of urls (either
absolute or relative to the argument bundle). | public static URL | getUrl(String value, Bundle definingBundle) Create an url from the argument absolute or relative path. |
getImage | public static ImageDescriptor getImage(String value, Bundle definingBundle)(Code) | | Create a descriptor from the argument absolute or relative path to an
image file. bundle parameter is used as the base for relative paths and
is allowed to be null.
Parameters: value - the absolute or relative path Parameters: definingBundle - bundle to be used for relative paths (may be null) |
getImages | public static ImageDescriptor[] getImages(String value, Bundle definingBundle)(Code) | | Returns an array of image descriptors for the given property, or
null . The property value should be a comma separated list
of image paths. Each path should either be absolute or relative to the
optional bundle parameter.
Parameters: value - value of a property that contains a comma-separated list ofproduct relative urls describing images Parameters: definingBundle - bundle to be used for relative paths (may be null) an array of image descriptors for the given property, ornull |
getURLs | public static URL[] getURLs(String value, Bundle definingBundle)(Code) | | Returns a array of URL for the given property or null .
The property value should be a comma separated list of urls (either
absolute or relative to the argument bundle). Tokens that do not
represent a valid url will be represented with a null entry in the
returned array.
Parameters: value - value of a property that contains a comma-separated list ofproduct relative urls Parameters: definingBundle - bundle to be used as base for relative paths (may be null) a URL for the given property, or null |
getUrl | public static URL getUrl(String value, Bundle definingBundle)(Code) | | Create an url from the argument absolute or relative path. The bundle
parameter is used as the base for relative paths and is allowed to be
null.
Parameters: value - the absolute or relative path Parameters: definingBundle - bundle to be used for relative paths (may be null) |
|
|