EGF Engine
Release 0.1.0

org.eclipse.egf.common.activator
Class AbstractActivator

java.lang.Object
  extended by Plugin
      extended by org.eclipse.egf.common.activator.AbstractActivator
Direct Known Subclasses:
CommonActivator, EgfMappingActivator, ModelActivator, PatternActivator, PdeEmfActivator, PdePatternActivator

public abstract class AbstractActivator
extends Plugin


Constructor Summary
AbstractActivator()
           
 
Method Summary
 String getPluginID()
          Get the plug-in ID according to MANIFEST.MF definition.
 void log(Class<?> clazz, String methodName, Throwable t)
          Logs the given throwable to the platform log, indicating the class and method from where it is being logged (this is not necessarily where it occurred).
 void log(int severity, String message, Throwable e)
          Log the given exception along with the provided message and severity indicator
 void log(IStatus status)
          Logs the given message and status to the platform log.
 void log(String message)
          Logs the given message to the platform log.
 void log(String message, IStatus status)
          Logs the given message and status to the platform log.
 void log(String message, Throwable t)
          Logs the given message and throwable to the platform log.
 void log(Throwable t)
           
 IStatus newErrorStatus(String message, Throwable exception)
          Returns a new error status for this plug-in with the given message
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractActivator

public AbstractActivator()
Method Detail

log

public void log(Throwable t)

newErrorStatus

public IStatus newErrorStatus(String message,
                              Throwable exception)
Returns a new error status for this plug-in with the given message

Parameters:
message - the message to be included in the status
exception - the exception to be included in the status or null if none
Returns:
a new error status

log

public void log(String message)
Logs the given message to the platform log. If you have an exception in hand, call log(String, Throwable) instead. If you have a status object in hand call log(String, IStatus) instead.

Parameters:
message - A high level UI message describing when the problem happened.

log

public void log(String message,
                Throwable t)
Logs the given message and throwable to the platform log. If you have a status object in hand call log(String, IStatus) instead.

Parameters:
message - A high level UI message describing when the problem happened.
t - The throwable from where the problem actually occurred.

log

public void log(Class<?> clazz,
                String methodName,
                Throwable t)
Logs the given throwable to the platform log, indicating the class and method from where it is being logged (this is not necessarily where it occurred).

Parameters:
clazz - The calling class.
methodName - The calling method name.
t - The throwable from where the problem actually occurred.

log

public void log(IStatus status)
Logs the given message and status to the platform log.

Parameters:
status - The status describing the problem. Must not be null.

log

public void log(int severity,
                String message,
                Throwable e)
Log the given exception along with the provided message and severity indicator


log

public void log(String message,
                IStatus status)
Logs the given message and status to the platform log.

Parameters:
message - A high level UI message describing when the problem happened. May be null.
status - The status describing the problem. Must not be null.

getPluginID

public String getPluginID()
Get the plug-in ID according to MANIFEST.MF definition.

Returns:
a String containing the plug-in ID.

EGF Engine
Release 0.1.0

Copyright (c) Thales Corporate Services S.A.S, 2009.

This page is made available under license. For full details see the LEGAL in the documentation book that contains this page.