org.eclipse.ocl.examples.impactanalyzer.impl
Class ImpactAnalyzerPlugin
java.lang.Object
org.eclipse.core.runtime.Plugin
org.eclipse.emf.common.EMFPlugin.EclipsePlugin
org.eclipse.ocl.examples.impactanalyzer.impl.ImpactAnalyzerPlugin
- All Implemented Interfaces:
- org.eclipse.emf.common.EMFPlugin.InternalEclipsePlugin, org.eclipse.emf.common.util.Logger, org.eclipse.emf.common.util.ResourceLocator, org.osgi.framework.BundleActivator
public class ImpactAnalyzerPlugin
- extends org.eclipse.emf.common.EMFPlugin.EclipsePlugin
Fields inherited from class org.eclipse.emf.common.EMFPlugin.EclipsePlugin |
helper |
Fields inherited from class org.eclipse.core.runtime.Plugin |
PLUGIN_PREFERENCE_SCOPE, PREFERENCES_DEFAULT_OVERRIDE_BASE_NAME, PREFERENCES_DEFAULT_OVERRIDE_FILE_NAME |
Method Summary |
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 ImpactAnalyzerPlugin |
getPlugin()
|
static java.lang.String |
getPluginId()
|
static void |
log(int severity,
int code,
java.lang.String message,
java.lang.Throwable throwable)
|
static boolean |
shouldTrace(java.lang.String option)
|
void |
start(org.osgi.framework.BundleContext context)
|
static void |
trace(java.lang.String message)
Emits the specified message to the trace log. |
Methods inherited from class org.eclipse.emf.common.EMFPlugin.EclipsePlugin |
doGetImage, getBaseURL, getImage, getString, getString, getString, getString, getSymbolicName, log |
Methods inherited from class org.eclipse.core.runtime.Plugin |
find, find, getBundle, getDescriptor, getLog, getPluginPreferences, getStateLocation, initializeDefaultPluginPreferences, internalInitializeDefaultPluginPreferences, isDebugging, openStream, openStream, savePluginPreferences, setDebugging, shutdown, startup, stop, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
DEBUG
public static final java.lang.String DEBUG
EXCEPTIONS_CATCHING
public static final java.lang.String EXCEPTIONS_CATCHING
EMPTY_STRING
public static final java.lang.String EMPTY_STRING
- See Also:
- Constant Field Values
IGNORED_EXCEPTION_WARNING
public static final int IGNORED_EXCEPTION_WARNING
- See Also:
- Constant Field Values
ImpactAnalyzerPlugin
public ImpactAnalyzerPlugin()
- Initializes me with my Eclipse plug-in descriptor.
start
public void start(org.osgi.framework.BundleContext context)
throws java.lang.Exception
- Specified by:
start
in interface org.osgi.framework.BundleActivator
- Overrides:
start
in class org.eclipse.core.runtime.Plugin
- Throws:
java.lang.Exception
getPlugin
public static ImpactAnalyzerPlugin getPlugin()
getPluginId
public static java.lang.String getPluginId()
log
public static void log(int severity,
int code,
java.lang.String message,
java.lang.Throwable throwable)
catching
public 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.
- Parameters:
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.
shouldTrace
public static boolean shouldTrace(java.lang.String option)
trace
public static void trace(java.lang.String message)
- Emits the specified message to the trace log. It is the caller's responsibility to ensure that the appropriate tracing
option is enabled.
- Parameters:
message
- a message- See Also:
shouldTrace(String)