public class OCLEcorePlugin
extends org.eclipse.emf.common.EMFPlugin
Modifier and Type | Class and Description |
---|---|
static class |
OCLEcorePlugin.Implementation
The definition of the Eclipse plug-in flavour of this EMF plug-in.
|
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
EMPTY_STRING |
static OCLEcorePlugin |
INSTANCE |
Constructor and Description |
---|
OCLEcorePlugin()
The constructor.
|
Modifier and Type | Method and Description |
---|---|
static void |
catching(java.lang.Class<?> clazz,
java.lang.String methodName,
java.lang.Throwable throwable)
Traces the catching of the specified throwable in the specified method of
the specified class.
|
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 org.eclipse.emf.ecore.resource.Resource.Factory |
getEcoreResourceFactory()
Obtains the best available resource factory suitable for serializing
Ecore models.
|
static OCLEcorePlugin |
getInstance()
Returns the shared instance.
|
static OCLEcorePlugin.Implementation |
getPlugin()
Obtains the Eclipse plug-in that I implement.
|
static java.lang.String |
getPluginId() |
org.eclipse.emf.common.util.ResourceLocator |
getPluginResourceLocator() |
static void |
info(int code,
java.lang.String message)
Generates an information log for the specified plug-in, with the
specified status code, message.
|
static void |
info(int code,
java.lang.String message,
java.lang.Throwable throwable)
Generates an information log for the specified plug-in, with the
specified status code, message, and throwable.
|
static void |
info(java.lang.String message)
Generates an information log for the specified plug-in, with the
specified message.
|
static void |
log(int severity,
int code,
java.lang.String message,
java.lang.Throwable throwable) |
static boolean |
shouldTrace(java.lang.String option) |
static void |
throwing(java.lang.Class<?> clazz,
java.lang.String methodName,
java.lang.Throwable throwable) |
static void |
warning(int code,
java.lang.String message)
Generates a warning log for the specified plug-in, with the specified
status code, message.
|
static void |
warning(int code,
java.lang.String message,
java.lang.Throwable throwable)
Generates a warning log for the specified plug-in, with the specified
status code, message, and throwable.
|
getDelegateResourceLocators, getPluginLogger, getPrimaryResourceLocator, getSymbolicName, log, main
delegatedGetImage, delegatedGetString, doGetImage, doGetString, extensionFor, getBaseURL, getImage, getString, getString, getString, getString, setShouldTranslate, shouldTranslate
public static final java.lang.String EMPTY_STRING
public static OCLEcorePlugin INSTANCE
public static java.lang.String getPluginId()
public org.eclipse.emf.common.util.ResourceLocator getPluginResourceLocator()
getPluginResourceLocator
in class org.eclipse.emf.common.EMFPlugin
public static OCLEcorePlugin.Implementation getPlugin()
public static OCLEcorePlugin getInstance()
public static void catching(java.lang.Class<?> clazz, java.lang.String methodName, java.lang.Throwable throwable)
clazz
- The class in which the throwable is being caught.methodName
- The name of the method in which the throwable is being caught.throwable
- The throwable that is being caught.public static void throwing(java.lang.Class<?> clazz, java.lang.String methodName, java.lang.Throwable throwable)
public static boolean shouldTrace(java.lang.String option)
public static void error(int code, java.lang.String message)
code
- The status code for the log.message
- The message for the log.public static void error(int code, java.lang.String message, java.lang.Throwable throwable)
code
- The status code for the log.message
- The message for the log.throwable
- The throwable for the log.public static void info(java.lang.String message)
message
- The message for the log.public static void info(int code, java.lang.String message)
code
- The status code for the log.message
- The message for the log.public static void info(int code, java.lang.String message, java.lang.Throwable throwable)
code
- The status code for the log.message
- The message for the log.throwable
- The throwable for the log.public static void warning(int code, java.lang.String message)
code
- The status code for the log.message
- The message for the log.public static void warning(int code, java.lang.String message, java.lang.Throwable throwable)
code
- The status code for the log.message
- The message for the log.throwable
- The throwable for the log.public static void log(int severity, int code, java.lang.String message, java.lang.Throwable throwable)
public static org.eclipse.emf.ecore.resource.Resource.Factory getEcoreResourceFactory()