|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.core.runtime.Plugin
org.eclipse.ui.plugin.AbstractUIPlugin
org.eclipse.emf.common.ui.EclipseUIPlugin
An Eclipse AbstractUIPlugin implementation base to be used within UI plug-ins.
Field Summary | |
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. |
Fields inherited from class org.eclipse.core.runtime.Plugin |
PLUGIN_PREFERENCE_SCOPE, PREFERENCES_DEFAULT_OVERRIDE_BASE_NAME, PREFERENCES_DEFAULT_OVERRIDE_FILE_NAME |
Constructor Summary | |
EclipseUIPlugin()
Creates an instance. |
Method Summary | |
protected Object |
doGetImage(String key)
Does the work of fetching the image associated with the key. |
URL |
getBaseURL()
Returns the URL from which all resources are based. |
Object |
getImage(String key)
Returns the description that can be used to create the image resource associated with the key. |
String |
getString(String key)
Returns the string resource associated with the key. |
String |
getString(String key,
boolean translate)
Returns the string resource associated with the key. |
String |
getString(String key,
Object[] substitutions)
Returns a string resource associated with the key, and peforms substitutions. |
String |
getString(String key,
Object[] substitutions,
boolean translate)
Returns a string resource associated with the key, and peforms substitutions. |
String |
getSymbolicName()
Return the plugin ID. |
void |
log(Object logEntry)
Logs an entry. |
Methods inherited from class org.eclipse.ui.plugin.AbstractUIPlugin |
createImageRegistry, getDialogSettings, getImageRegistry, getPreferenceStore, getWorkbench, imageDescriptorFromPlugin, initializeDefaultPluginPreferences, initializeDefaultPreferences, initializeImageRegistry, loadDialogSettings, loadPreferenceStore, refreshPluginActions, saveDialogSettings, savePreferenceStore, shutdown, start, startup, stop |
Methods inherited from class org.eclipse.core.runtime.Plugin |
find, find, getBundle, getDescriptor, getLog, getPluginPreferences, getStateLocation, internalInitializeDefaultPluginPreferences, isDebugging, openStream, openStream, savePluginPreferences, setDebugging, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected EMFPlugin.InternalHelper helper
Constructor Detail |
public EclipseUIPlugin()
Method Detail |
public String getSymbolicName()
getSymbolicName
in interface EMFPlugin.InternalEclipsePlugin
public URL getBaseURL()
ResourceLocator
getBaseURL
in interface ResourceLocator
public Object getImage(String key)
ResourceLocator
getImage
in interface ResourceLocator
key
- the key of the image resource.
protected Object doGetImage(String key) throws IOException
key
- the key of the image to fetch.
IOException
- if an image doesn't exist.public String getString(String key)
ResourceLocator
getString
in interface ResourceLocator
key
- the key of the string resource.
public String getString(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 String getString(String key, 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 String getString(String key, 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[])
public void log(Object logEntry)
Logger
log
in interface Logger
logEntry
- a plastic entry to log.
|
Copyright 2001-2006 IBM Corporation and others. All Rights Reserved. |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |