|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.emf.common.util.DelegatingResourceLocator
org.eclipse.emf.common.EMFPlugin
org.eclipse.emf.common.CommonPlugin
public final class CommonPlugin
The Plugin for the model EMF.Common library. EMF must run within an Eclipse workbench, within a headless Eclipse workspace, or just stand-alone as part of some other application. To support this, all resource access should be directed to the resource locator, which can redirect the service as appropriate to the runtime. During stand-alone invocation no plugin initialization takes place. In this case, common.resources.jar must be on the CLASSPATH.
INSTANCE| Nested Class Summary | |
|---|---|
static class |
CommonPlugin.Implementation
The actual implementation of the Eclipse Plugin. |
| Nested classes/interfaces inherited from class org.eclipse.emf.common.EMFPlugin |
|---|
EMFPlugin.EclipsePlugin, EMFPlugin.InternalEclipsePlugin, EMFPlugin.InternalHelper |
| Field Summary | |
|---|---|
private static java.lang.reflect.Method |
COLLATOR_GET_INSTANCE_METHOD
|
static CommonPlugin |
INSTANCE
The singleton instance of the plugin. |
private static CommonPlugin.Implementation |
plugin
The one instance of this class. |
| Fields inherited from class org.eclipse.emf.common.EMFPlugin |
|---|
delegateResourceLocators, IS_ECLIPSE_RUNNING, IS_RESOURCES_BUNDLE_AVAILABLE |
| Fields inherited from class org.eclipse.emf.common.util.DelegatingResourceLocator |
|---|
baseURL, images, resourceBundle, shouldTranslate, strings, untranslatedResourceBundle, untranslatedStrings |
| Constructor Summary | |
|---|---|
private |
CommonPlugin()
Creates the singleton instance. |
| Method Summary | |
|---|---|
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. |
| Methods inherited from class org.eclipse.emf.common.EMFPlugin |
|---|
getDelegateResourceLocators, getPluginLogger, getPrimaryResourceLocator, getSymbolicName, log, main |
| Methods inherited from class org.eclipse.emf.common.util.DelegatingResourceLocator |
|---|
delegatedGetImage, delegatedGetString, doGetImage, doGetString, extensionFor, getBaseURL, getImage, getString, getString, getString, getString, setShouldTranslate, shouldTranslate |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.eclipse.emf.common.util.ResourceLocator |
|---|
getBaseURL, getImage, getString, getString, getString, getString |
| Field Detail |
|---|
public static final CommonPlugin INSTANCE
private static CommonPlugin.Implementation plugin
private static final java.lang.reflect.Method COLLATOR_GET_INSTANCE_METHOD
| Constructor Detail |
|---|
private CommonPlugin()
| Method Detail |
|---|
public ResourceLocator getPluginResourceLocator()
EMFPlugin
getPluginResourceLocator in class EMFPluginpublic static CommonPlugin.Implementation getPlugin()
public static URI asLocalURI(URI uri)
public static URI resolve(URI uri)
public static java.lang.Class<?> loadClass(java.lang.String pluginID,
java.lang.String className)
throws java.lang.ClassNotFoundException
java.lang.ClassNotFoundExceptionpublic 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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||