| java.lang.Object org.eclipse.ui.internal.intro.impl.model.util.BundleUtil
BundleUtil | public class BundleUtil (Code) | | Bundle convenience methods.
|
Method Summary | |
public static boolean | bundleHasValidState(Bundle bundle) Utility method to validate the state of a bundle. | public static Bundle | getBundleFromConfigurationElement(IConfigurationElement cfg) | public static String | getBundleHeader(Bundle bundle, String key) Retrieves the given key from the bundle header. | public static String | getResolvedBundleLocation(Bundle bundle) | public static String | getResolvedBundleLocation(String bundleId) Get the absolute path of the bundle with id bundleId . | public static String | getResolvedResourceLocation(String resource, String pluginId) Returns the fully qualified location of the passed resource string from
the passed plugin id. | public static String | getResolvedResourceLocation(String resource, Bundle bundle) Shorthand util method. | public static String | getResolvedResourceLocation(String base, String resource, Bundle bundle) | public static String | getResolvedResourceLocation(String resource, Bundle bundle, boolean forceNLResolve) | public static URL | getResourceAsURL(String resource, String pluginId) | public static String | getResourceLocation(String resource, IConfigurationElement element) Get the resourcelocation, but do not force an $nl$ on it. |
bundleHasValidState | public static boolean bundleHasValidState(Bundle bundle)(Code) | | Utility method to validate the state of a bundle. Log invalid bundles to
log file.
|
getBundleFromConfigurationElement | public static Bundle getBundleFromConfigurationElement(IConfigurationElement cfg)(Code) | | |
getBundleHeader | public static String getBundleHeader(Bundle bundle, String key)(Code) | | Retrieves the given key from the bundle header.
Parameters: bundle - Parameters: key - |
getResolvedBundleLocation | public static String getResolvedBundleLocation(Bundle bundle)(Code) | | Get the absolute path of the given bundle, in the form
file:/path_to_plugin
Parameters: bundle - |
getResolvedBundleLocation | public static String getResolvedBundleLocation(String bundleId)(Code) | | Get the absolute path of the bundle with id bundleId . If
no such bundle is found, return null.
Parameters: bundleId - |
getResolvedResourceLocation | public static String getResolvedResourceLocation(String resource, String pluginId)(Code) | | Returns the fully qualified location of the passed resource string from
the passed plugin id. If the file could not be loaded from the plugin,
the resource is returned as is.
Parameters: resource - |
getResolvedResourceLocation | public static String getResolvedResourceLocation(String resource, Bundle bundle)(Code) | | Shorthand util method.
Parameters: resource - |
getResolvedResourceLocation | public static String getResolvedResourceLocation(String base, String resource, Bundle bundle)(Code) | | |
getResolvedResourceLocation | public static String getResolvedResourceLocation(String resource, Bundle bundle, boolean forceNLResolve)(Code) | | |
getResourceAsURL | public static URL getResourceAsURL(String resource, String pluginId)(Code) | | used by Intro parser *****
|
getResourceLocation | public static String getResourceLocation(String resource, IConfigurationElement element)(Code) | | Get the resourcelocation, but do not force an $nl$ on it.
Parameters: resource - Parameters: element - |
|
|