Class CommonPlugin
- java.lang.Object
-
- org.eclipse.core.runtime.Plugin
-
- org.eclipse.m2m.internal.qvt.oml.common.CommonPlugin
-
- All Implemented Interfaces:
org.osgi.framework.BundleActivator
public class CommonPlugin extends org.eclipse.core.runtime.PluginThe main plugin class to be used in the desktop.
-
-
Constructor Summary
Constructors Constructor Description CommonPlugin()The constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static org.eclipse.core.runtime.IStatuscreateStatus(int severity, String message, Throwable throwable)static CommonPlugingetDefault()Returns the shared instance.ResourceBundlegetResourceBundle()Returns the plugin's resource bundle,static StringgetResourceString(String key)Returns the string from the plugin's resource bundle, or 'key' if not found.static StringgetResourceString(String key, Object[] substitutions)static voidlog(Throwable e)static voidlog(org.eclipse.core.runtime.IStatus status)voidstart(org.osgi.framework.BundleContext context)This method is called upon plug-in activationvoidstop(org.osgi.framework.BundleContext context)This method is called when the plug-in is stopped
-
-
-
Field Detail
-
ID
public static final String ID
- See Also:
- Constant Field Values
-
-
Method Detail
-
start
public void start(org.osgi.framework.BundleContext context) throws ExceptionThis method is called upon plug-in activation- Specified by:
startin interfaceorg.osgi.framework.BundleActivator- Overrides:
startin classorg.eclipse.core.runtime.Plugin- Throws:
Exception
-
stop
public void stop(org.osgi.framework.BundleContext context) throws ExceptionThis method is called when the plug-in is stopped- Specified by:
stopin interfaceorg.osgi.framework.BundleActivator- Overrides:
stopin classorg.eclipse.core.runtime.Plugin- Throws:
Exception
-
getDefault
public static CommonPlugin getDefault()
Returns the shared instance.
-
getResourceString
public static String getResourceString(String key)
Returns the string from the plugin's resource bundle, or 'key' if not found.
-
getResourceBundle
public ResourceBundle getResourceBundle()
Returns the plugin's resource bundle,
-
log
public static void log(org.eclipse.core.runtime.IStatus status)
-
log
public static void log(Throwable e)
-
-