public class OCLUMLPlugin
extends EMFPlugin
Modifier and Type | Class and Description |
---|---|
static class |
OCLUMLPlugin.Implementation
The definition of the Eclipse plug-in flavour of this EMF plug-in.
|
Modifier and Type | Field and Description |
---|---|
static String |
EMPTY_STRING |
static OCLUMLPlugin |
INSTANCE |
Constructor and Description |
---|
OCLUMLPlugin()
The constructor.
|
Modifier and Type | Method and Description |
---|---|
static void |
catching(Class<?> clazz,
String methodName,
Throwable throwable)
Traces the catching of the specified throwable in the specified method of
the specified class.
|
static void |
error(int code,
String message)
Generates an error log for the specified plug-in, with the specified
status code, message.
|
static void |
error(int code,
String message,
Throwable throwable)
Generates an error log for the specified plug-in, with the specified
status code, message, and throwable.
|
static OCLUMLPlugin |
getInstance()
Returns the shared instance.
|
static OCLUMLPlugin.Implementation |
getPlugin()
Obtains the Eclipse plug-in that I implement.
|
static String |
getPluginId() |
ResourceLocator |
getPluginResourceLocator() |
static void |
info(int code,
String message)
Generates an information log for the specified plug-in, with the
specified status code, message.
|
static void |
info(int code,
String message,
Throwable throwable)
Generates an information log for the specified plug-in, with the
specified status code, message, and throwable.
|
static void |
info(String message)
Generates an information log for the specified plug-in, with the
specified message.
|
static void |
log(int severity,
int code,
String message,
Throwable throwable) |
static boolean |
shouldTrace(String option) |
static void |
throwing(Class<?> clazz,
String methodName,
Throwable throwable) |
static void |
warning(int code,
String message)
Generates a warning log for the specified plug-in, with the specified
status code, message.
|
static void |
warning(int code,
String message,
Throwable throwable)
Generates a warning log for the specified plug-in, with the specified
status code, message, and throwable.
|
public static final String EMPTY_STRING
public static OCLUMLPlugin INSTANCE
public static String getPluginId()
public ResourceLocator getPluginResourceLocator()
public static OCLUMLPlugin.Implementation getPlugin()
public static OCLUMLPlugin getInstance()
public static void catching(Class<?> clazz, String methodName, 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 boolean shouldTrace(String option)
public static void error(int code, String message)
code
- The status code for the log.message
- The message for the log.public static void error(int code, String message, 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(String message)
message
- The message for the log.public static void info(int code, String message)
code
- The status code for the log.message
- The message for the log.public static void info(int code, String message, 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, String message)
code
- The status code for the log.message
- The message for the log.public static void warning(int code, String message, Throwable throwable)
code
- The status code for the log.message
- The message for the log.throwable
- The throwable for the log.Copyright © 2005, 2018 IBM Corporation and others. All Rights Reserved.