Package org.eclipse.emf.common
Class EMFPlugin
java.lang.Object
org.eclipse.emf.common.util.DelegatingResourceLocator
org.eclipse.emf.common.EMFPlugin
- All Implemented Interfaces:
Logger,ResourceLocator
- Direct Known Subclasses:
CommonPlugin
public abstract class EMFPlugin
extends DelegatingResourceLocator
implements ResourceLocator, Logger
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 (e.g., NL strings, images, and so on) is directed to the resource locator methods,
which can redirect the service as appropriate to the runtime.
During Eclipse invocation, the implementation delegates to a plugin implementation.
During stand-alone invocation, no plugin initialization takes place,
so the implementation delegates to a resource JAR on the CLASSPATH.
The resource jar will typically not be on the CLASSPATH during Eclipse invocation.
It will contain things like the icons and the .properties,
which are available in a different way during Eclipse invocation.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classThe actual implementation of an Eclipse Plugin.static interfaceThis just provides a common interface for the Eclipse plugins supported by EMF.static classThis just provides a common delegate for non-UI and UI plug-in classes.static classThis is just a bundle activator wrapper for delegating to another bundle activator. -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ResourceLocator[]static final booleanstatic final booleanstatic final booleanFields inherited from class org.eclipse.emf.common.util.DelegatingResourceLocator
baseURL, bundleLocalization, images, resourceBundle, shouldTranslate, strings, untranslatedResourceBundle, untranslatedStrings -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ResourceLocator[]Returns the delegate resource locators.Returns an Eclipse plugin implementation of a logger.abstract ResourceLocatorReturns an Eclipse plugin implementation of a resource locator.protected final ResourceLocatorReturns the primary resource locator.voidLogs an entry.static voidMethods inherited from class org.eclipse.emf.common.util.DelegatingResourceLocator
delegatedGetImage, delegatedGetString, doGetImage, doGetString, extensionFor, getBaseURL, getBundleLocalization, getImage, getString, getString, getString, getString, setShouldTranslate, shouldTranslateMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.eclipse.emf.common.util.ResourceLocator
getBaseURL, getImage, getString, getString, getString, getString
-
Field Details
-
IS_OSGI_RUNNING
public static final boolean IS_OSGI_RUNNING- Since:
- 2.27
-
IS_ECLIPSE_RUNNING
public static final boolean IS_ECLIPSE_RUNNING -
IS_RESOURCES_BUNDLE_AVAILABLE
public static final boolean IS_RESOURCES_BUNDLE_AVAILABLE -
delegateResourceLocators
-
-
Constructor Details
-
EMFPlugin
-
-
Method Details
-
getPluginResourceLocator
Returns an Eclipse plugin implementation of a resource locator.- Returns:
- an Eclipse plugin implementation of a resource locator.
-
getPrimaryResourceLocator
Description copied from class:DelegatingResourceLocatorReturns the primary resource locator.- Specified by:
getPrimaryResourceLocatorin classDelegatingResourceLocator- Returns:
- the primary resource locator.
-
getDelegateResourceLocators
Description copied from class:DelegatingResourceLocatorReturns the delegate resource locators.- Specified by:
getDelegateResourceLocatorsin classDelegatingResourceLocator- Returns:
- the delegate resource locators.
-
getPluginLogger
Returns an Eclipse plugin implementation of a logger.- Returns:
- an Eclipse plugin implementation of a logger.
-
getSymbolicName
-
log
Description copied from interface:LoggerLogs an entry. -
main
-