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.ImagecreateImage(String path) static EUnitPluginReturns the shared instanceReturns the history of all EUnit launches since Eclipse was started.org.eclipse.swt.graphics.ImagegetIconImage(String iconPath) Produces an Image object from its path inside the plugin.static org.eclipse.jface.resource.ImageDescriptorgetImageDescriptor(String path) Returns an image descriptor for the image file at the given plug-in relative pathorg.eclipse.debug.core.ILaunchReturns the last Ant launch that has been performed, ornullif 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.voidlaunchesAdded(org.eclipse.debug.core.ILaunch[] launches) voidlaunchesChanged(org.eclipse.debug.core.ILaunch[] launches) voidlaunchesRemoved(org.eclipse.debug.core.ILaunch[] launches) voidLogs an exception as an error in the Error Log view.voidsetLastView(EUnitRunnerView lastView) Updates the reference to the last view opened by the user.voidsetSelectedOperations(org.eclipse.debug.core.ILaunchConfigurationWorkingCopy launchConfig, List selOps) Sets the list of operations to be run in the launch with configurationlaunchConfig.voidstart(org.osgi.framework.BundleContext context) voidstop(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, startupMethods 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:
startin interfaceorg.osgi.framework.BundleActivator- Overrides:
startin classorg.eclipse.ui.plugin.AbstractUIPlugin- Throws:
Exception
-
stop
- Specified by:
stopin interfaceorg.osgi.framework.BundleActivator- Overrides:
stopin 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:
createImagein 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, ornullif none has been performed yet. -
launchesRemoved
public void launchesRemoved(org.eclipse.debug.core.ILaunch[] launches) - Specified by:
launchesRemovedin interfaceorg.eclipse.debug.core.ILaunchesListener
-
launchesAdded
public void launchesAdded(org.eclipse.debug.core.ILaunch[] launches) - Specified by:
launchesAddedin interfaceorg.eclipse.debug.core.ILaunchesListener
-
launchesChanged
public void launchesChanged(org.eclipse.debug.core.ILaunch[] launches) - Specified by:
launchesChangedin 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 anullreference. This method should only be called by the constructor of theEUnitRunnerViewclass. -
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.
-