public final class CommonPlugin extends EMFPlugin
INSTANCE
Modifier and Type | Class and Description |
---|---|
static class |
CommonPlugin.Implementation
The actual implementation of the Eclipse Plugin.
|
EMFPlugin.EclipsePlugin, EMFPlugin.InternalEclipsePlugin, EMFPlugin.InternalHelper, EMFPlugin.OSGiDelegatingBundleActivator
Modifier and Type | Field and Description |
---|---|
static CommonPlugin |
INSTANCE
The singleton instance of the plugin.
|
delegateResourceLocators, IS_ECLIPSE_RUNNING, IS_RESOURCES_BUNDLE_AVAILABLE
baseURL, images, resourceBundle, shouldTranslate, strings, untranslatedResourceBundle, untranslatedStrings
Modifier and Type | Method and Description |
---|---|
static URI |
asLocalURI(URI uri)
Use the platform, if available, to convert to a local URI.
|
java.util.Comparator<java.lang.String> |
getComparator()
Returns a string comparator appropriate for collating strings for the
current locale . |
java.util.Comparator<java.lang.String> |
getComparator(java.util.Locale locale)
Returns a string comparator appropriate for collating strings for the give locale.
|
static CommonPlugin.Implementation |
getPlugin()
Returns the singleton instance of the Eclipse plugin.
|
ResourceLocator |
getPluginResourceLocator()
Returns an Eclipse plugin implementation of a resource locator.
|
static java.lang.Class<?> |
loadClass(java.lang.String pluginID,
java.lang.String className)
Use the platform, if available, to load the named class using the right class loader.
|
static URI |
resolve(URI uri)
Use the platform, if available, to resolve the URI.
|
getDelegateResourceLocators, getPluginLogger, getPrimaryResourceLocator, getSymbolicName, log, main
delegatedGetImage, delegatedGetString, doGetImage, doGetString, extensionFor, getBaseURL, getImage, getString, getString, getString, getString, setShouldTranslate, shouldTranslate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getBaseURL, getImage, getString, getString, getString, getString
public static final CommonPlugin INSTANCE
public ResourceLocator getPluginResourceLocator()
EMFPlugin
getPluginResourceLocator
in class EMFPlugin
public static CommonPlugin.Implementation getPlugin()
public static URI asLocalURI(URI uri)
public static java.lang.Class<?> loadClass(java.lang.String pluginID, java.lang.String className) throws java.lang.ClassNotFoundException
java.lang.ClassNotFoundException
public java.util.Comparator<java.lang.String> getComparator()
current locale
.current locale
.public java.util.Comparator<java.lang.String> getComparator(java.util.Locale locale)
Collator
otherwise.locale
- the locale for which a comparator is needed.