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 |
|---|
EclipsePlugin()
Creates an instance.
|
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 EclipsePlugin()
@Deprecated public EclipsePlugin(org.eclipse.core.runtime.IPluginDescriptor descriptor)
descriptor - the description of the plugin.public java.lang.String getSymbolicName()
getSymbolicName in interface EMFPlugin.InternalEclipsePluginpublic java.net.URL getBaseURL()
ResourceLocatorgetBaseURL in interface ResourceLocatorpublic java.lang.Object getImage(java.lang.String key)
ResourceLocatorgetImage in interface ResourceLocatorkey - 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)
ResourceLocatorgetString in interface ResourceLocatorkey - the key of the string resource.public java.lang.String getString(java.lang.String key,
boolean translate)
ResourceLocatorgetString in interface ResourceLocatorkey - 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)
ResourceLocatorgetString in interface ResourceLocatorkey - 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)
ResourceLocatorgetString in interface ResourceLocatorkey - 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[])Copyright © 2018. Licensed under the Eclipse Public License v1.0. All rights reserved.
Submit a bug or feature