Package org.eclipse.epsilon.eunit.dt
Class EUnitPlugin
java.lang.Object
org.eclipse.core.runtime.Plugin
org.eclipse.ui.plugin.AbstractUIPlugin
org.eclipse.epsilon.eunit.dt.EUnitPlugin
- All Implemented Interfaces:
org.eclipse.debug.core.ILaunchesListener
,EpsilonPlugin
,org.osgi.framework.BundleActivator
public class EUnitPlugin
extends org.eclipse.ui.plugin.AbstractUIPlugin
implements EpsilonPlugin, org.eclipse.debug.core.ILaunchesListener
The activator class controls the plug-in life cycle.
-
Field Summary
FieldsFields inherited from class org.eclipse.core.runtime.Plugin
PLUGIN_PREFERENCE_SCOPE, PREFERENCES_DEFAULT_OVERRIDE_BASE_NAME, PREFERENCES_DEFAULT_OVERRIDE_FILE_NAME
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.eclipse.swt.graphics.Image
createImage
(String path) static EUnitPlugin
Returns the shared instanceReturns the history of all EUnit launches since Eclipse was started.org.eclipse.swt.graphics.Image
getIconImage
(String iconPath) Produces an Image object from its path inside the plugin.static org.eclipse.jface.resource.ImageDescriptor
getImageDescriptor
(String path) Returns an image descriptor for the image file at the given plug-in relative pathorg.eclipse.debug.core.ILaunch
Returns the last Ant launch that has been performed, ornull
if none has been performed yet.Obtains the reference to the last EUnit view opened by the user.getSelectedOperations
(org.eclipse.debug.core.ILaunch launch) Returns the list of the operations to be run in a launch.void
launchesAdded
(org.eclipse.debug.core.ILaunch[] launches) void
launchesChanged
(org.eclipse.debug.core.ILaunch[] launches) void
launchesRemoved
(org.eclipse.debug.core.ILaunch[] launches) void
Logs an exception as an error in the Error Log view.void
setLastView
(EUnitRunnerView lastView) Updates the reference to the last view opened by the user.void
setSelectedOperations
(org.eclipse.debug.core.ILaunchConfigurationWorkingCopy launchConfig, List selOps) Sets the list of operations to be run in the launch with configurationlaunchConfig
.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, initializeImageRegistry, loadDialogSettings, loadPreferenceStore, refreshPluginActions, saveDialogSettings, savePreferenceStore, shutdown, startup
Methods inherited from class org.eclipse.core.runtime.Plugin
find, find, getBundle, getLog, getPluginPreferences, getStateLocation, internalInitializeDefaultPluginPreferences, isDebugging, openStream, openStream, savePluginPreferences, setDebugging, toString
-
Field Details
-
PLUGIN_ID
- See Also:
-
-
Constructor Details
-
EUnitPlugin
public EUnitPlugin()
-
-
Method Details
-
start
- Specified by:
start
in interfaceorg.osgi.framework.BundleActivator
- Overrides:
start
in classorg.eclipse.ui.plugin.AbstractUIPlugin
- Throws:
Exception
-
stop
- Specified by:
stop
in interfaceorg.osgi.framework.BundleActivator
- Overrides:
stop
in classorg.eclipse.ui.plugin.AbstractUIPlugin
- Throws:
Exception
-
getDefault
Returns the shared instance- Returns:
- the shared instance
-
getImageDescriptor
Returns an image descriptor for the image file at the given plug-in relative path- Parameters:
path
- the path- Returns:
- the image descriptor
-
createImage
- Specified by:
createImage
in interfaceEpsilonPlugin
-
getIconImage
Produces an Image object from its path inside the plugin. -
logException
Logs an exception as an error in the Error Log view.- Parameters:
e
- Exception to be logged.
-
getLastLaunch
public org.eclipse.debug.core.ILaunch getLastLaunch()Returns the last Ant launch that has been performed, ornull
if none has been performed yet. -
launchesRemoved
public void launchesRemoved(org.eclipse.debug.core.ILaunch[] launches) - Specified by:
launchesRemoved
in interfaceorg.eclipse.debug.core.ILaunchesListener
-
launchesAdded
public void launchesAdded(org.eclipse.debug.core.ILaunch[] launches) - Specified by:
launchesAdded
in interfaceorg.eclipse.debug.core.ILaunchesListener
-
launchesChanged
public void launchesChanged(org.eclipse.debug.core.ILaunch[] launches) - Specified by:
launchesChanged
in interfaceorg.eclipse.debug.core.ILaunchesListener
-
getHistory
Returns the history of all EUnit launches since Eclipse was started. -
getSelectedOperations
Returns the list of the operations to be run in a launch. -
setSelectedOperations
public void setSelectedOperations(org.eclipse.debug.core.ILaunchConfigurationWorkingCopy launchConfig, List selOps) Sets the list of operations to be run in the launch with configurationlaunchConfig
. -
setLastView
Updates the reference to the last view opened by the user. By default, it is anull
reference. This method should only be called by the constructor of theEUnitRunnerView
class. -
getLastView
Obtains the reference to the last EUnit view opened by the user. If the EUnit view has not been opened yet since Eclipse was started, returnsnull
.
-