|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.datatools.connectivity.services.PluginResourceLocator
public class PluginResourceLocator
Locator of plug-in entries and resources. It supports locating entries and service resources in both Eclipse OSGi and OSGi-less platforms.
Constructor Summary | |
---|---|
PluginResourceLocator()
|
Method Summary | |
---|---|
static java.net.URL |
getConfigurableWorkspaceLocation(java.lang.String pluginId)
Returns the user configurable workspace location of the specified plug-in. |
static java.net.URL |
getPluginEntry(org.eclipse.core.runtime.IConfigurationElement configElement,
java.lang.String path)
Returns a URL to the entry at the specified path in the plugin-in that contributes the specified configuration element. |
static java.net.URL |
getPluginEntry(java.lang.String pluginId,
java.lang.String path)
Returns a URL to the entry at the specified path in the specified plug-in. |
static org.eclipse.core.runtime.IPath |
getPluginEntryPath(java.lang.String pluginId,
java.lang.String path)
Returns a IPath to the entry at the specified path in the specified plug-in. |
static org.eclipse.core.runtime.IPath |
getPluginRootPath(org.eclipse.core.runtime.IConfigurationElement configElement)
Returns a IPath to the root entry of the plugin-in that contributes the specified configuration element. |
static org.eclipse.core.runtime.IPath |
getPluginRootPath(java.lang.String pluginId)
Returns a IPath to the root entry of the specified plug-in. |
static org.eclipse.core.runtime.IPath |
getPluginStateLocation(java.lang.String pluginId)
Returns the location in the local file system of the plug-in state area for the specified plug-in. |
static java.lang.String |
getResourceString(java.lang.String pluginId,
java.lang.String value)
Returns a resource string corresponding to the given argument value. |
static java.net.URL |
resolve(java.net.URL url)
Converts a URL that uses a client-defined protocol into a URL that uses a protocol which is native to the Java class library (file, jar, http, etc). |
static java.net.URL |
toFileURL(java.net.URL url)
Converts a URL that uses a user-defined protocol into a URL that uses the file protocol. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PluginResourceLocator()
Method Detail |
---|
public static org.eclipse.core.runtime.IPath getPluginRootPath(org.eclipse.core.runtime.IConfigurationElement configElement)
configElement
- configuration element
public static org.eclipse.core.runtime.IPath getPluginRootPath(java.lang.String pluginId)
pluginId
- unique identifier of a plug-in or bundle
public static org.eclipse.core.runtime.IPath getPluginEntryPath(java.lang.String pluginId, java.lang.String path)
pluginId
- unique identifier of a plug-in or bundlepath
- the path name of the entry
public static java.net.URL getPluginEntry(org.eclipse.core.runtime.IConfigurationElement configElement, java.lang.String path)
configElement
- configuration elementpath
- the path name of the entry
public static java.net.URL getPluginEntry(java.lang.String pluginId, java.lang.String path)
pluginId
- unique identifier of a plug-in or bundlepath
- the path name of the entry
public static org.eclipse.core.runtime.IPath getPluginStateLocation(java.lang.String pluginId)
pluginId
- the unique, symbolic name of a plug-in or bundle
#getConfigurableWorkspaceLocation(String)}
public static java.net.URL getConfigurableWorkspaceLocation(java.lang.String pluginId)
pluginId
- the unique, symbolic name of a plug-in or bundle
public static java.net.URL resolve(java.net.URL url) throws java.io.IOException
url
- the original URL
java.io.IOException
- if unable to resolve URL, or if an error occurs during the resolutionpublic static java.net.URL toFileURL(java.net.URL url) throws java.io.IOException
If the protocol for the given URL is not recognized by this converter, the original URL is returned as-is.
url
- the original URL
java.io.IOException
- if an error occurs during the conversionpublic static java.lang.String getResourceString(java.lang.String pluginId, java.lang.String value)
pluginId
- unique identifier of a plug-in or bundle
whose resource bundle is being queriedvalue
- the value to look for
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |