public abstract static class EMFPlugin.EclipsePlugin extends Plugin implements ResourceLocator, Logger, EMFPlugin.InternalEclipsePlugin
Modifier and Type | Field and Description |
---|---|
protected EMFPlugin.InternalHelper |
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.
|
Constructor and Description |
---|
EMFPlugin.EclipsePlugin()
Creates an instance.
|
EMFPlugin.EclipsePlugin(org.eclipse.core.runtime.IPluginDescriptor descriptor)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected java.lang.Object |
doGetImage(java.lang.String key)
Does the work of fetching the image associated with the key.
|
java.net.URL |
getBaseURL()
Returns the URL from which all resources are based.
|
java.lang.Object |
getImage(java.lang.String key)
Returns the description that can be used to create the image resource associated with the key.
|
java.lang.String |
getString(java.lang.String key)
Returns the string resource associated with the key.
|
java.lang.String |
getString(java.lang.String key,
boolean translate)
Returns the string resource associated with the key.
|
java.lang.String |
getString(java.lang.String key,
java.lang.Object[] substitutions)
Returns a string resource associated with the key, and performs substitutions.
|
java.lang.String |
getString(java.lang.String key,
java.lang.Object[] substitutions,
boolean translate)
Returns a string resource associated with the key, and performs substitutions.
|
java.lang.String |
getSymbolicName()
Return the plugin ID.
|
void |
log(java.lang.Object logEntry)
Logs an entry.
|
protected EMFPlugin.InternalHelper helper
public EMFPlugin.EclipsePlugin()
@Deprecated public EMFPlugin.EclipsePlugin(org.eclipse.core.runtime.IPluginDescriptor descriptor)
descriptor
- the description of the plugin.public java.lang.String getSymbolicName()
getSymbolicName
in interface EMFPlugin.InternalEclipsePlugin
public java.net.URL getBaseURL()
ResourceLocator
getBaseURL
in interface ResourceLocator
public java.lang.Object getImage(java.lang.String key)
ResourceLocator
getImage
in interface ResourceLocator
key
- the key of the image resource.protected java.lang.Object doGetImage(java.lang.String key) throws java.io.IOException
key
- the key of the image to fetch.java.io.IOException
- if an image doesn't exist.public java.lang.String getString(java.lang.String key)
ResourceLocator
getString
in interface ResourceLocator
key
- the key of the string resource.public java.lang.String getString(java.lang.String key, boolean translate)
ResourceLocator
getString
in interface ResourceLocator
key
- the key of the string resource.translate
- whether the result is to be translated to the current locale.public java.lang.String getString(java.lang.String key, java.lang.Object[] substitutions)
ResourceLocator
getString
in interface ResourceLocator
key
- the key of the string.substitutions
- the message substitutions.ResourceLocator.getString(String)
,
MessageFormat.format(String, Object[])
public java.lang.String getString(java.lang.String key, java.lang.Object[] substitutions, boolean translate)
ResourceLocator
getString
in interface ResourceLocator
key
- the key of the string.substitutions
- the message substitutions.translate
- whether the result is to be translated to the current locale.ResourceLocator.getString(String)
,
MessageFormat.format(String, Object[])