org.eclipse.ocl.examples.xtext.base.utilities
Class BasePlugin
java.lang.Object
org.eclipse.emf.common.util.DelegatingResourceLocator
org.eclipse.emf.common.EMFPlugin
org.eclipse.ocl.examples.xtext.base.utilities.BasePlugin
- All Implemented Interfaces:
- org.eclipse.emf.common.util.Logger, org.eclipse.emf.common.util.ResourceLocator
public final class BasePlugin
- extends org.eclipse.emf.common.EMFPlugin
This is the central singleton for the Pivot model plugin.
- Generated
Nested classes/interfaces inherited from class org.eclipse.emf.common.EMFPlugin |
org.eclipse.emf.common.EMFPlugin.EclipsePlugin, org.eclipse.emf.common.EMFPlugin.InternalEclipsePlugin, org.eclipse.emf.common.EMFPlugin.InternalHelper, org.eclipse.emf.common.EMFPlugin.OSGiDelegatingBundleActivator |
Fields inherited from class org.eclipse.emf.common.EMFPlugin |
delegateResourceLocators, IS_ECLIPSE_RUNNING, IS_RESOURCES_BUNDLE_AVAILABLE |
Fields inherited from class org.eclipse.emf.common.util.DelegatingResourceLocator |
baseURL, images, resourceBundle, shouldTranslate, strings, untranslatedResourceBundle, untranslatedStrings |
Constructor Summary |
BasePlugin()
Create the instance. |
Method Summary |
static void |
error(int code,
java.lang.String message)
Generates an error log for the specified plug-in, with the specified
status code, message. |
static void |
error(int code,
java.lang.String message,
java.lang.Throwable throwable)
Generates an error log for the specified plug-in, with the specified
status code, message, and throwable. |
static BasePlugin.Implementation |
getPlugin()
Returns the singleton instance of the Eclipse plugin. |
static java.lang.String |
getPluginId()
|
org.eclipse.emf.common.util.ResourceLocator |
getPluginResourceLocator()
Returns the singleton instance of the Eclipse plugin. |
static void |
log(int severity,
int code,
java.lang.String message,
java.lang.Throwable throwable)
|
Methods inherited from class org.eclipse.emf.common.EMFPlugin |
getDelegateResourceLocators, getPluginLogger, getPrimaryResourceLocator, getSymbolicName, log, main |
Methods inherited from class org.eclipse.emf.common.util.DelegatingResourceLocator |
delegatedGetImage, delegatedGetString, doGetImage, doGetString, extensionFor, getBaseURL, getImage, getString, getString, getString, getString, setShouldTranslate, shouldTranslate |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.eclipse.emf.common.util.ResourceLocator |
getBaseURL, getImage, getString, getString, getString, getString |
INSTANCE
public static final BasePlugin INSTANCE
- Keep track of the singleton.
- Generated
BasePlugin
public BasePlugin()
- Create the instance.
- Generated
error
public static void error(int code,
java.lang.String message)
- Generates an error log for the specified plug-in, with the specified
status code, message.
- Parameters:
code
- The status code for the log.message
- The message for the log.
error
public static void error(int code,
java.lang.String message,
java.lang.Throwable throwable)
- Generates an error log for the specified plug-in, with the specified
status code, message, and throwable.
- Parameters:
code
- The status code for the log.message
- The message for the log.throwable
- The throwable for the log.
getPlugin
public static BasePlugin.Implementation getPlugin()
- Returns the singleton instance of the Eclipse plugin.
- Returns:
- the singleton instance.
- Generated
getPluginId
public static java.lang.String getPluginId()
getPluginResourceLocator
public org.eclipse.emf.common.util.ResourceLocator getPluginResourceLocator()
- Returns the singleton instance of the Eclipse plugin.
- Specified by:
getPluginResourceLocator
in class org.eclipse.emf.common.EMFPlugin
- Returns:
- the singleton instance.
- Generated
log
public static void log(int severity,
int code,
java.lang.String message,
java.lang.Throwable throwable)