Traceability

org.topcased.traceability.hmi.modeler
Class TWPlugin

java.lang.Object
  extended by org.eclipse.core.runtime.Plugin
      extended by org.eclipse.ui.plugin.AbstractUIPlugin
          extended by org.topcased.traceability.hmi.modeler.TWPlugin
All Implemented Interfaces:
org.osgi.framework.BundleActivator

public class TWPlugin
extends org.eclipse.ui.plugin.AbstractUIPlugin

The main plugin class to be used in the desktop.

** Generated **

Field Summary
 
Fields inherited from class org.eclipse.core.runtime.Plugin
PLUGIN_PREFERENCE_SCOPE, PREFERENCES_DEFAULT_OVERRIDE_BASE_NAME, PREFERENCES_DEFAULT_OVERRIDE_FILE_NAME
 
Constructor Summary
TWPlugin()
          The constructor.
 
Method Summary
static org.eclipse.ui.IWorkbenchPage getActivePage()
          Returns the active workbench page or null if none.
static org.eclipse.swt.widgets.Shell getActiveWorkbenchShell()
          Returns the active workbench shell
static org.eclipse.ui.IWorkbenchWindow getActiveWorkbenchWindow()
          Returns the active workbench window
static TWPlugin getDefault()
          Returns the shared instance.
static java.lang.String getId()
           
static void log(org.eclipse.core.runtime.IStatus status)
          Log an IStatus
static void log(java.lang.String message, int level)
          Log a message with given level into the Eclipse log file
static void log(java.lang.Throwable e)
          Log an exception into the Eclipse log file
 void start(org.osgi.framework.BundleContext context)
          This method is called upon plug-in activation
 void stop(org.osgi.framework.BundleContext context)
          This method is called when the plug-in is stopped
 
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
 

Constructor Detail

TWPlugin

public TWPlugin()
The constructor.

** Generated **
Method Detail

start

public void start(org.osgi.framework.BundleContext context)
           throws java.lang.Exception
This method is called upon plug-in activation

Specified by:
start in interface org.osgi.framework.BundleActivator
Overrides:
start in class org.eclipse.ui.plugin.AbstractUIPlugin
Throws:
java.lang.Exception
See Also:
BundleActivator.start(org.osgi.framework.BundleContext)
** Generated **

stop

public void stop(org.osgi.framework.BundleContext context)
          throws java.lang.Exception
This method is called when the plug-in is stopped

Specified by:
stop in interface org.osgi.framework.BundleActivator
Overrides:
stop in class org.eclipse.ui.plugin.AbstractUIPlugin
Throws:
java.lang.Exception
See Also:
BundleActivator.stop(org.osgi.framework.BundleContext)
** Generated **

getDefault

public static TWPlugin getDefault()
Returns the shared instance.

Returns:
the singleton
** Generated **

getId

public static java.lang.String getId()
Returns:
the Plugin Id
** Generated **

getActiveWorkbenchShell

public static org.eclipse.swt.widgets.Shell getActiveWorkbenchShell()
Returns the active workbench shell

Returns:
the active workbench shell
** Generated **

getActivePage

public static org.eclipse.ui.IWorkbenchPage getActivePage()
Returns the active workbench page or null if none.

Returns:
the active workbench page
** Generated **

getActiveWorkbenchWindow

public static org.eclipse.ui.IWorkbenchWindow getActiveWorkbenchWindow()
Returns the active workbench window

Returns:
the active workbench window
** Generated **

log

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

Parameters:
message - the message to log
level - the message priority
** Generated **

log

public static void log(java.lang.Throwable e)
Log an exception into the Eclipse log file

Parameters:
e - the exception to log
** Generated **

log

public static void log(org.eclipse.core.runtime.IStatus status)
Log an IStatus

Parameters:
status - the status to log
** Generated **

Traceability

Copyright (c) 2005 TOPCASED Contributors 2005 - 2007. All rights reserved.