org.eclipse.emf.mapping.presentation
Class MappingUIPlugin
java.lang.Object
|
+--org.eclipse.core.runtime.Plugin
|
+--org.eclipse.ui.plugin.AbstractUIPlugin
|
+--org.eclipse.emf.mapping.presentation.MappingUIPlugin
- public class MappingUIPlugin
- extends org.eclipse.ui.plugin.AbstractUIPlugin
This is the central singleton for the emf.mapping plugin.
Fields inherited from class org.eclipse.core.runtime.Plugin |
PREFERENCES_DEFAULT_OVERRIDE_BASE_NAME, PREFERENCES_DEFAULT_OVERRIDE_FILE_NAME |
Constructor Summary |
MappingUIPlugin(org.eclipse.core.runtime.IPluginDescriptor descriptor)
Create the instance. |
Method Summary |
org.eclipse.swt.graphics.Image |
getImage(java.lang.String key)
This get a .gif from the image registry, which caches the icons folder. |
org.eclipse.jface.resource.ImageDescriptor |
getImageDescriptor(java.lang.String key)
This gets a .gif from the icons folder. |
static MappingUIPlugin |
getPlugin()
Get the singleton instance. |
java.lang.String |
getString(java.lang.String key)
|
java.lang.String |
getString(java.lang.String key,
java.lang.Object s1)
|
java.lang.String |
getString(java.lang.String key,
java.lang.Object s1,
java.lang.Object s2)
|
void |
startup()
Do initialization stuff here. |
Methods inherited from class org.eclipse.ui.plugin.AbstractUIPlugin |
createImageRegistry, getDialogSettings, getImageRegistry, getPreferenceStore, getWorkbench, initializeDefaultPluginPreferences, initializeDefaultPreferences, initializeImageRegistry, loadDialogSettings, loadPreferenceStore, refreshPluginActions, saveDialogSettings, savePreferenceStore, shutdown |
Methods inherited from class org.eclipse.core.runtime.Plugin |
find, find, getDescriptor, getLog, getPluginPreferences, getStateLocation, isDebugging, openStream, openStream, savePluginPreferences, setDebugging, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
instance
protected static MappingUIPlugin instance
- Keep track of the singleton.
MappingUIPlugin
public MappingUIPlugin(org.eclipse.core.runtime.IPluginDescriptor descriptor)
- Create the instance.
getPlugin
public static MappingUIPlugin getPlugin()
- Get the singleton instance.
startup
public void startup()
throws org.eclipse.core.runtime.CoreException
- Do initialization stuff here.
- Overrides:
startup
in class org.eclipse.ui.plugin.AbstractUIPlugin
getString
public java.lang.String getString(java.lang.String key)
getString
public java.lang.String getString(java.lang.String key,
java.lang.Object s1)
getString
public java.lang.String getString(java.lang.String key,
java.lang.Object s1,
java.lang.Object s2)
getImageDescriptor
public org.eclipse.jface.resource.ImageDescriptor getImageDescriptor(java.lang.String key)
- This gets a .gif from the icons folder.
getImage
public org.eclipse.swt.graphics.Image getImage(java.lang.String key)
- This get a .gif from the image registry, which caches the icons folder.