org.eclipse.ocl.examples.xtext.base.ui
Class Activator

java.lang.Object
  extended by org.eclipse.core.runtime.Plugin
      extended by org.eclipse.ui.plugin.AbstractUIPlugin
          extended by org.eclipse.ocl.examples.xtext.base.ui.Activator
All Implemented Interfaces:
org.osgi.framework.BundleActivator

public class Activator
extends org.eclipse.ui.plugin.AbstractUIPlugin
implements org.osgi.framework.BundleActivator

Since:
1.2

Field Summary
static java.lang.String PLUGIN_ID
           
 
Fields inherited from class org.eclipse.core.runtime.Plugin
PLUGIN_PREFERENCE_SCOPE, PREFERENCES_DEFAULT_OVERRIDE_BASE_NAME, PREFERENCES_DEFAULT_OVERRIDE_FILE_NAME
 
Constructor Summary
Activator()
           
 
Method Summary
static Activator getDefault()
          Returns the shared instance
static org.eclipse.jface.resource.ImageDescriptor getImageDescriptor(java.lang.String path)
          Returns an image descriptor for the image file at the given plug-in relative path
static org.eclipse.core.resources.IWorkspace getPluginWorkspace()
          Return the workspace used by the workbench This method is internal to the workbench and must not be called by any plugins.
static void log(java.lang.Class clazz, java.lang.String methodName, java.lang.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).
static void log(java.lang.Exception e)
          Logs a message with given level into the Eclipse log file
static void log(java.lang.String message, int severity, java.lang.Exception e)
          Logs a message with given level into the Eclipse log file
static void log(java.lang.String message, org.eclipse.core.runtime.IStatus status)
          Logs the given message and status to the platform log.
static void log(java.lang.String message, java.lang.Throwable t)
          Logs the given message and throwable to the platform log.
 void start(org.osgi.framework.BundleContext bundleContext)
           
 void stop(org.osgi.framework.BundleContext bundleContext)
           
 
Methods inherited from class org.eclipse.ui.plugin.AbstractUIPlugin
createImageRegistry, getDialogSettings, getImageRegistry, getPreferenceStore, getWorkbench, imageDescriptorFromPlugin, initializeDefaultPluginPreferences, initializeDefaultPreferences, initializeImageRegistry, loadDialogSettings, loadPreferenceStore, refreshPluginActions, saveDialogSettings, savePreferenceStore, shutdown, startup
 
Methods inherited from class org.eclipse.core.runtime.Plugin
find, find, getBundle, getDescriptor, getLog, getPluginPreferences, getStateLocation, internalInitializeDefaultPluginPreferences, isDebugging, openStream, openStream, savePluginPreferences, setDebugging, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

PLUGIN_ID

public static final java.lang.String PLUGIN_ID
See Also:
Constant Field Values
Constructor Detail

Activator

public Activator()
Method Detail

start

public void start(org.osgi.framework.BundleContext bundleContext)
           throws java.lang.Exception
Specified by:
start in interface org.osgi.framework.BundleActivator
Overrides:
start in class org.eclipse.ui.plugin.AbstractUIPlugin
Throws:
java.lang.Exception

stop

public void stop(org.osgi.framework.BundleContext bundleContext)
          throws java.lang.Exception
Specified by:
stop in interface org.osgi.framework.BundleActivator
Overrides:
stop in class org.eclipse.ui.plugin.AbstractUIPlugin
Throws:
java.lang.Exception

getDefault

public static Activator getDefault()
Returns the shared instance

Returns:
the shared instance

getPluginWorkspace

public static org.eclipse.core.resources.IWorkspace getPluginWorkspace()
Return the workspace used by the workbench This method is internal to the workbench and must not be called by any plugins.


getImageDescriptor

public static org.eclipse.jface.resource.ImageDescriptor getImageDescriptor(java.lang.String path)
Returns an image descriptor for the image file at the given plug-in relative path

Parameters:
path - the path
Returns:
the image descriptor

log

public static void log(java.lang.String message,
                       java.lang.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. This convenience method is for internal use by the IDE Workbench only and must not be called outside the IDE Workbench.

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

log

public static void log(java.lang.Class clazz,
                       java.lang.String methodName,
                       java.lang.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). This convenience method is for internal use by the IDE Workbench only and must not be called outside the IDE Workbench.

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

log

public static void log(java.lang.String message,
                       org.eclipse.core.runtime.IStatus status)
Logs the given message and status to the platform log. This convenience method is for internal use by the IDE Workbench only and must not be called outside the IDE Workbench.

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.

log

public static void log(java.lang.Exception e)
Logs a message with given level into the Eclipse log file

Parameters:
message - the message to log
severity - the message priority

log

public static void log(java.lang.String message,
                       int severity,
                       java.lang.Exception e)
Logs a message with given level into the Eclipse log file

Parameters:
message - the message to log
severity - the message priority
e - exception to log