Package org.eclipse.ui.internal
Class BrandingProperties
java.lang.Object
org.eclipse.ui.internal.BrandingProperties
- Direct Known Subclasses:
BundleGroupProperties
,ProductProperties
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.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ImageDescriptor
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.static ImageDescriptor[]
Returns an array of image descriptors for the given property, ornull
.static URL
Create an url from the argument absolute or relative path.static URL[]
Returns a array of URL for the given property ornull
.
-
Constructor Details
-
BrandingProperties
public BrandingProperties()
-
-
Method Details
-
getUrl
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 pathdefiningBundle
- bundle to be used for relative paths (may be null)
-
getImage
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 pathdefiningBundle
- bundle to be used for relative paths (may be null)
-
getURLs
Returns a array of URL for the given property ornull
. 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 of product relative urlsdefiningBundle
- bundle to be used as base for relative paths (may be null)- Returns:
- a URL for the given property, or
null
-
getImages
Returns an array of image descriptors for the given property, ornull
. 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 of product relative urls describing imagesdefiningBundle
- bundle to be used for relative paths (may be null)- Returns:
- an array of image descriptors for the given property, or
null
-