Package org.eclipse.emf.common
Class EMFPlugin.EclipsePlugin
java.lang.Object
org.eclipse.core.runtime.Plugin
org.eclipse.emf.common.EMFPlugin.EclipsePlugin
- All Implemented Interfaces:
EMFPlugin.InternalEclipsePlugin,Logger,ResourceLocator,org.osgi.framework.BundleActivator
- Direct Known Subclasses:
CommonPlugin.Implementation
- Enclosing class:
EMFPlugin
public abstract static class EMFPlugin.EclipsePlugin
extends org.eclipse.core.runtime.Plugin
implements ResourceLocator, Logger, EMFPlugin.InternalEclipsePlugin
The actual implementation of an Eclipse Plugin.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected EMFPlugin.InternalHelperThe EMF plug-in APIs are all delegated to this helper, so that code can be shared by plug-in implementations with a different platform base class (e.g.Fields inherited from class org.eclipse.core.runtime.Plugin
PLUGIN_PREFERENCE_SCOPE, PREFERENCES_DEFAULT_OVERRIDE_BASE_NAME, PREFERENCES_DEFAULT_OVERRIDE_FILE_NAME -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ObjectdoGetImage(String key) Does the work of fetching the image associated with the key.Returns the URL from which all resources are based.Returns the description that can be used to create the image resource associated with the key.Returns the string resource associated with the key.Returns the string resource associated with the key.Returns a string resource associated with the key, and performs substitutions.Returns a string resource associated with the key, and performs substitutions.Return the plugin ID.voidLogs an entry.Methods inherited from class org.eclipse.core.runtime.Plugin
find, find, getBundle, getLog, getPluginPreferences, getStateLocation, initializeDefaultPluginPreferences, internalInitializeDefaultPluginPreferences, isDebugging, openStream, openStream, savePluginPreferences, setDebugging, shutdown, start, startup, stop, toString
-
Field Details
-
helper
The EMF plug-in APIs are all delegated to this helper, so that code can be shared by plug-in implementations with a different platform base class (e.g. AbstractUIPlugin).
-
-
Constructor Details
-
EclipsePlugin
public EclipsePlugin()Creates an instance.
-
-
Method Details
-
getSymbolicName
Return the plugin ID.- Specified by:
getSymbolicNamein interfaceEMFPlugin.InternalEclipsePlugin
-
getBaseURL
Description copied from interface:ResourceLocatorReturns the URL from which all resources are based.- Specified by:
getBaseURLin interfaceResourceLocator- Returns:
- the URL from which all resources are based.
-
getImage
Description copied from interface:ResourceLocatorReturns the description that can be used to create the image resource associated with the key. The description will typically be in the form of a URL to the image data. Creation of an actual image depends on the GUI environment; within Eclipse, org.eclipse.emf.edit.ui.provider.ExtendedImageRegistry can be used.- Specified by:
getImagein interfaceResourceLocator- Parameters:
key- the key of the image resource.- Returns:
- the description on the image resource.
-
doGetImage
Does the work of fetching the image associated with the key. It ensures that the image exists.- Parameters:
key- the key of the image to fetch.- Returns:
- the description of the image associated with the key.
- Throws:
IOException- if an image doesn't exist.
-
getString
Description copied from interface:ResourceLocatorReturns the string resource associated with the key.- Specified by:
getStringin interfaceResourceLocator- Parameters:
key- the key of the string resource.- Returns:
- the string resource associated with the key.
-
getString
Description copied from interface:ResourceLocatorReturns the string resource associated with the key.- Specified by:
getStringin interfaceResourceLocator- Parameters:
key- the key of the string resource.translate- whether the result is to be translated to the current locale.- Returns:
- the string resource associated with the key.
-
getString
Description copied from interface:ResourceLocatorReturns a string resource associated with the key, and performs substitutions.- Specified by:
getStringin interfaceResourceLocator- Parameters:
key- the key of the string.substitutions- the message substitutions.- Returns:
- a string resource associated with the key.
- See Also:
-
getString
Description copied from interface:ResourceLocatorReturns a string resource associated with the key, and performs substitutions.- Specified by:
getStringin interfaceResourceLocator- Parameters:
key- the key of the string.substitutions- the message substitutions.translate- whether the result is to be translated to the current locale.- Returns:
- a string resource associated with the key.
- See Also:
-
log
Description copied from interface:LoggerLogs an entry.
-