net.bpelunit.framework.client.eclipse
Class BPELUnitActivator

java.lang.Object
  extended by org.eclipse.core.runtime.Plugin
      extended by org.eclipse.ui.plugin.AbstractUIPlugin
          extended by net.bpelunit.framework.client.eclipse.BPELUnitActivator
All Implemented Interfaces:
org.osgi.framework.BundleActivator

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

The main plug-in class for the BPELUnit Eclipse client.

Version:
$Id$
Author:
Philip Mayer

Field Summary
static String BPELUNIT_CONSOLE_ID
           
static String BPELUNIT_COVERAGE_VIEW_ID
           
static String BPELUNIT_VIEW_ID
           
static String FRAMEWORK_BUNDLE_SYMBOLICNAME
           
static String IMAGE_BPEL
           
static String IMAGE_ERROR
           
static String IMAGE_INFO
           
static String IMAGE_WARNING
           
static int INTERNAL_ERROR
           
static String INTERNAL_ERROR_MESSAGE
           
static 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
BPELUnitActivator()
           
 
Method Summary
 void deregisterLaunchSession(TestRunSession session)
          Deregisters the a launch session from the UI.
static org.eclipse.ui.IWorkbenchWindow getActiveWorkbenchWindow()
          Returns the active workbench window
 EclipseBPELUnitRunner getBPELUnitCore()
          Grab the BPEL Unit Core.
static BPELUnitActivator getDefault()
          Returns the shared instance
static org.eclipse.swt.widgets.Display getDisplay()
          Returns the current, or default display
static org.eclipse.swt.graphics.Image getImage(String key)
          Returns a managed image for the given key.
static org.eclipse.jface.resource.ImageDescriptor getImageDescriptor(String path)
          Returns an image descriptor for the image file at the given plug-in relative path
static String getUniqueIdentifier()
          Convenience method which returns the unique identifier of this plugin.
 void initializeCoverageResultView()
           
protected  void initializeImageRegistry(org.eclipse.jface.resource.ImageRegistry reg)
          Initializes the image registry
static void log(org.eclipse.core.runtime.IStatus status)
          Logs the specified status with this plug-in's log.
static void log(Throwable e)
          Logs an internal error with the specified throwable
static void logErrorMessage(String message)
          Logs an internal error with the specified message.
 void registerLaunchSession(TestRunSession session)
          Registers a new launch session with the UI.
 void showCoverageResult(List<String> testCases, List<net.bpelunit.framework.coverage.result.statistic.IFileStatistic> statistics, String string)
           
 void start(org.osgi.framework.BundleContext context)
           
 void stop(org.osgi.framework.BundleContext context)
           
 
Methods inherited from class org.eclipse.ui.plugin.AbstractUIPlugin
createImageRegistry, getDialogSettings, getImageRegistry, getPreferenceStore, getWorkbench, imageDescriptorFromPlugin, initializeDefaultPluginPreferences, initializeDefaultPreferences, 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 String PLUGIN_ID
See Also:
Constant Field Values

FRAMEWORK_BUNDLE_SYMBOLICNAME

public static final String FRAMEWORK_BUNDLE_SYMBOLICNAME
See Also:
Constant Field Values

BPELUNIT_VIEW_ID

public static final String BPELUNIT_VIEW_ID
See Also:
Constant Field Values

BPELUNIT_COVERAGE_VIEW_ID

public static final String BPELUNIT_COVERAGE_VIEW_ID
See Also:
Constant Field Values

BPELUNIT_CONSOLE_ID

public static final String BPELUNIT_CONSOLE_ID
See Also:
Constant Field Values

INTERNAL_ERROR

public static final int INTERNAL_ERROR
See Also:
Constant Field Values

INTERNAL_ERROR_MESSAGE

public static final String INTERNAL_ERROR_MESSAGE
See Also:
Constant Field Values

IMAGE_INFO

public static final String IMAGE_INFO
See Also:
Constant Field Values

IMAGE_WARNING

public static final String IMAGE_WARNING
See Also:
Constant Field Values

IMAGE_ERROR

public static final String IMAGE_ERROR
See Also:
Constant Field Values

IMAGE_BPEL

public static final String IMAGE_BPEL
See Also:
Constant Field Values
Constructor Detail

BPELUnitActivator

public BPELUnitActivator()
Method Detail

getUniqueIdentifier

public static String getUniqueIdentifier()
Convenience method which returns the unique identifier of this plugin.


start

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

stop

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

getDefault

public static BPELUnitActivator getDefault()
Returns the shared instance

Returns:
the shared instance

getImageDescriptor

public static org.eclipse.jface.resource.ImageDescriptor getImageDescriptor(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(org.eclipse.core.runtime.IStatus status)
Logs the specified status with this plug-in's log.

Parameters:
status - status to log

logErrorMessage

public static void logErrorMessage(String message)
Logs an internal error with the specified message.

Parameters:
message - the error message to log

log

public static void log(Throwable e)
Logs an internal error with the specified throwable

Parameters:
e - the exception to be logged

getActiveWorkbenchWindow

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

Returns:
the active workbench window

registerLaunchSession

public void registerLaunchSession(TestRunSession session)
Registers a new launch session with the UI.

Parameters:
session -

deregisterLaunchSession

public void deregisterLaunchSession(TestRunSession session)
Deregisters the a launch session from the UI.

Parameters:
session -

showCoverageResult

public void showCoverageResult(List<String> testCases,
                               List<net.bpelunit.framework.coverage.result.statistic.IFileStatistic> statistics,
                               String string)

getBPELUnitCore

public EclipseBPELUnitRunner getBPELUnitCore()
                                      throws IOException,
                                             URISyntaxException,
                                             net.bpelunit.framework.exception.ConfigurationException
Grab the BPEL Unit Core. This lazily creates the core the first time this method is called. The core is configured on any call to this method, as the configuration depends on values set in the preference pages, which may change at any given time.

Returns:
BPELUnit core
Throws:
URISyntaxException
IOException
net.bpelunit.framework.exception.ConfigurationException

getDisplay

public static org.eclipse.swt.widgets.Display getDisplay()
Returns the current, or default display

Returns:

initializeImageRegistry

protected void initializeImageRegistry(org.eclipse.jface.resource.ImageRegistry reg)
Initializes the image registry

Overrides:
initializeImageRegistry in class org.eclipse.ui.plugin.AbstractUIPlugin

getImage

public static org.eclipse.swt.graphics.Image getImage(String key)
Returns a managed image for the given key.

Parameters:
key -
Returns:

initializeCoverageResultView

public void initializeCoverageResultView()


Copyright © 2013 Leibniz Universität Hannover. All Rights Reserved.