Package org.eclipse.pde.launching
Class JUnitLaunchConfigurationDelegate
- java.lang.Object
- 
- org.eclipse.debug.core.model.LaunchConfigurationDelegate
- 
- org.eclipse.jdt.launching.AbstractJavaLaunchConfigurationDelegate
- 
- org.eclipse.jdt.junit.launcher.JUnitLaunchConfigurationDelegate
- 
- org.eclipse.pde.launching.JUnitLaunchConfigurationDelegate
 
 
 
 
- 
- All Implemented Interfaces:
- IDebugEventSetListener,- ILaunchConfigurationDelegate,- ILaunchConfigurationDelegate2
 - Direct Known Subclasses:
- JUnitLaunchConfigurationDelegate
 
 public class JUnitLaunchConfigurationDelegate extends JUnitLaunchConfigurationDelegate A launch delegate for launching JUnit Plug-in tests.This class originally existed in 3.3 as org.eclipse.pde.ui.launcher.JUnitLaunchConfigurationDelegate.- Since:
- 3.6
 
- 
- 
Field SummaryFields Modifier and Type Field Description protected FilefConfigDirCaches the configuration directory when a launch is started- 
Fields inherited from class org.eclipse.debug.core.model.LaunchConfigurationDelegatecomplileErrorProjectPromptStatus, complileErrorPromptStatus, promptStatus, saveScopedDirtyEditors, switchToDebugPromptStatus
 
- 
 - 
Constructor SummaryConstructors Constructor Description JUnitLaunchConfigurationDelegate()
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected voidabort(String message, Throwable exception, int code)protected voidclear(ILaunchConfiguration configuration, IProgressMonitor monitor)Clears the workspace prior to launching if the workspace exists and the option to clear it is turned on.protected voidcollectExecutionArguments(ILaunchConfiguration configuration, List<String> vmArguments, List<String> programArgs)protected StringgetApplication(ILaunchConfiguration configuration)Returns the application to launch plug-in tests withprotected IProject[]getBuildOrder(ILaunchConfiguration configuration, String mode)String[]getClasspath(ILaunchConfiguration configuration)Deprecated.String[][]getClasspathAndModulepath(ILaunchConfiguration configuration)protected FilegetConfigurationDirectory(ILaunchConfiguration configuration)Returns the location of the configuration areaString[]getEnvironment(ILaunchConfiguration configuration)StringgetModuleCLIOptions(ILaunchConfiguration configuration)StringgetProgramArguments(ILaunchConfiguration configuration)protected IProject[]getProjectsForProblemSearch(ILaunchConfiguration configuration, String mode)static String[]getRequiredPlugins(ILaunchConfiguration configuration)StringgetVMArguments(ILaunchConfiguration configuration)IVMRunnergetVMRunner(ILaunchConfiguration configuration, String mode)Map<String,Object>getVMSpecificAttributesMap(ILaunchConfiguration configuration)FilegetWorkingDirectory(ILaunchConfiguration configuration)protected voidmanageLaunch(ILaunch launch)Adds a listener to the launch to be notified at interesting launch lifecycle events such as when the launch terminates.protected voidpreLaunchCheck(ILaunchConfiguration configuration, ILaunch launch, IProgressMonitor monitor)protected voidsetDefaultSourceLocator(ILaunch launch, ILaunchConfiguration configuration)StringshowCommandLine(ILaunchConfiguration configuration, String mode, ILaunch launch, IProgressMonitor monitor)protected voidsynchronizeManifests(ILaunchConfiguration configuration, IProgressMonitor monitor)Checks for old-style plugin.xml files that have become stale since the last launch.protected voidvalidatePluginDependencies(ILaunchConfiguration configuration, IProgressMonitor monitor)Validates inter-bundle dependencies automatically prior to launching if that option is turned on.protected voidvalidateProjectDependencies(ILaunchConfiguration configuration, IProgressMonitor monitor)Checks if the Automated Management of Dependencies option is turned on.StringverifyMainTypeName(ILaunchConfiguration configuration)- 
Methods inherited from class org.eclipse.jdt.junit.launcher.JUnitLaunchConfigurationDelegateevaluateTests, launch
 - 
Methods inherited from class org.eclipse.jdt.launching.AbstractJavaLaunchConfigurationDelegateallowAdvancedSourcelookup, getBootpath, getBootpathExt, getBreakpoints, getDefaultWorkingDirectory, getJavaLibraryPath, getJavaProject, getJavaProjectName, getLaunch, getLaunchManager, getMainTypeName, getVMArguments, getVMConnectorId, getVMInstall, getVMInstallName, getVMInstallType, getVMInstallTypeId, getWorkingDirectoryPath, handleDebugEvents, isAllowTerminate, isLaunchProblem, isStopInMain, preLaunchCheck, prepareStopInMain, supportsModule, supportsPreviewFeatures, verifyJavaProject, verifyVMInstall, verifyWorkingDirectory
 - 
Methods inherited from class org.eclipse.debug.core.model.LaunchConfigurationDelegateaddReferencedProjects, buildForLaunch, buildProjects, computeBuildOrder, computeReferencedBuildOrder, existsProblems, finalLaunchCheck, saveBeforeLaunch
 
- 
 
- 
- 
- 
Field Detail- 
fConfigDirprotected File fConfigDir Caches the configuration directory when a launch is started
 
- 
 - 
Method Detail- 
getVMRunnerpublic IVMRunner getVMRunner(ILaunchConfiguration configuration, String mode) throws CoreException - Overrides:
- getVMRunnerin class- AbstractJavaLaunchConfigurationDelegate
- Throws:
- CoreException
 
 - 
verifyMainTypeNamepublic String verifyMainTypeName(ILaunchConfiguration configuration) throws CoreException - Overrides:
- verifyMainTypeNamein class- JUnitLaunchConfigurationDelegate
- Throws:
- CoreException
 
 - 
abortprotected void abort(String message, Throwable exception, int code) throws CoreException - Overrides:
- abortin class- JUnitLaunchConfigurationDelegate
- Throws:
- CoreException
 
 - 
getModuleCLIOptionspublic String getModuleCLIOptions(ILaunchConfiguration configuration) throws CoreException - Overrides:
- getModuleCLIOptionsin class- AbstractJavaLaunchConfigurationDelegate
- Throws:
- CoreException
 
 - 
collectExecutionArgumentsprotected void collectExecutionArguments(ILaunchConfiguration configuration, List<String> vmArguments, List<String> programArgs) throws CoreException - Overrides:
- collectExecutionArgumentsin class- JUnitLaunchConfigurationDelegate
- Throws:
- CoreException
 
 - 
showCommandLinepublic String showCommandLine(ILaunchConfiguration configuration, String mode, ILaunch launch, IProgressMonitor monitor) throws CoreException - Specified by:
- showCommandLinein interface- ILaunchConfigurationDelegate
- Overrides:
- showCommandLinein class- JUnitLaunchConfigurationDelegate
- Throws:
- CoreException
 
 - 
getApplicationprotected String getApplication(ILaunchConfiguration configuration) Returns the application to launch plug-in tests with- Parameters:
- configuration- The launch configuration in which the application is specified.
- Returns:
- the application
- Since:
- 3.5
 
 - 
getProgramArgumentspublic String getProgramArguments(ILaunchConfiguration configuration) throws CoreException - Overrides:
- getProgramArgumentsin class- AbstractJavaLaunchConfigurationDelegate
- Throws:
- CoreException
 
 - 
getVMArgumentspublic String getVMArguments(ILaunchConfiguration configuration) throws CoreException - Overrides:
- getVMArgumentsin class- AbstractJavaLaunchConfigurationDelegate
- Throws:
- CoreException
 
 - 
getEnvironmentpublic String[] getEnvironment(ILaunchConfiguration configuration) throws CoreException - Overrides:
- getEnvironmentin class- AbstractJavaLaunchConfigurationDelegate
- Throws:
- CoreException
 
 - 
getClasspath@Deprecated public String[] getClasspath(ILaunchConfiguration configuration) throws CoreException Deprecated.- Overrides:
- getClasspathin class- JUnitLaunchConfigurationDelegate
- Throws:
- CoreException
 
 - 
getClasspathAndModulepathpublic String[][] getClasspathAndModulepath(ILaunchConfiguration configuration) throws CoreException - Overrides:
- getClasspathAndModulepathin class- JUnitLaunchConfigurationDelegate
- Throws:
- CoreException
 
 - 
getWorkingDirectorypublic File getWorkingDirectory(ILaunchConfiguration configuration) throws CoreException - Overrides:
- getWorkingDirectoryin class- AbstractJavaLaunchConfigurationDelegate
- Throws:
- CoreException
 
 - 
getVMSpecificAttributesMappublic Map<String,Object> getVMSpecificAttributesMap(ILaunchConfiguration configuration) throws CoreException - Overrides:
- getVMSpecificAttributesMapin class- AbstractJavaLaunchConfigurationDelegate
- Throws:
- CoreException
 
 - 
setDefaultSourceLocatorprotected void setDefaultSourceLocator(ILaunch launch, ILaunchConfiguration configuration) throws CoreException - Overrides:
- setDefaultSourceLocatorin class- AbstractJavaLaunchConfigurationDelegate
- Throws:
- CoreException
 
 - 
getConfigurationDirectoryprotected File getConfigurationDirectory(ILaunchConfiguration configuration) Returns the location of the configuration area- Parameters:
- configuration- the launch configuration
- Returns:
- a directory where the configuration area is located
 
 - 
getBuildOrderprotected IProject[] getBuildOrder(ILaunchConfiguration configuration, String mode) throws CoreException - Overrides:
- getBuildOrderin class- AbstractJavaLaunchConfigurationDelegate
- Throws:
- CoreException
 
 - 
getProjectsForProblemSearchprotected IProject[] getProjectsForProblemSearch(ILaunchConfiguration configuration, String mode) throws CoreException - Overrides:
- getProjectsForProblemSearchin class- AbstractJavaLaunchConfigurationDelegate
- Throws:
- CoreException
 
 - 
manageLaunchprotected void manageLaunch(ILaunch launch) Adds a listener to the launch to be notified at interesting launch lifecycle events such as when the launch terminates.- Parameters:
- launch- the launch
 
 - 
preLaunchCheckprotected void preLaunchCheck(ILaunchConfiguration configuration, ILaunch launch, IProgressMonitor monitor) throws CoreException - Overrides:
- preLaunchCheckin class- JUnitLaunchConfigurationDelegate
- Throws:
- CoreException
 
 - 
getRequiredPluginspublic static String[] getRequiredPlugins(ILaunchConfiguration configuration) - Parameters:
- configuration- non null config
- Returns:
- required plugins
- Restriction:
- This method is not intended to be referenced by clients.
 
 - 
synchronizeManifestsprotected void synchronizeManifests(ILaunchConfiguration configuration, IProgressMonitor monitor) Checks for old-style plugin.xml files that have become stale since the last launch. For any stale plugin.xml files found, the corresponding MANIFEST.MF is deleted from the runtime configuration area so that it gets regenerated upon startup.- Parameters:
- configuration- the launch configuration
- monitor- the progress monitor
 
 - 
clearprotected void clear(ILaunchConfiguration configuration, IProgressMonitor monitor) throws CoreException Clears the workspace prior to launching if the workspace exists and the option to clear it is turned on. Also clears the configuration area if that option is chosen.- Parameters:
- configuration- the launch configuration
- monitor- the progress monitor
- Throws:
- CoreException- if unable to retrieve launch attribute values
- Since:
- 3.3
 
 - 
validateProjectDependenciesprotected void validateProjectDependencies(ILaunchConfiguration configuration, IProgressMonitor monitor) Checks if the Automated Management of Dependencies option is turned on. If so, it makes aure all manifests are updated with the correct dependencies.- Parameters:
- configuration- the launch configuration
- monitor- a progress monitor
 
 - 
validatePluginDependenciesprotected void validatePluginDependencies(ILaunchConfiguration configuration, IProgressMonitor monitor) throws CoreException Validates inter-bundle dependencies automatically prior to launching if that option is turned on.- Parameters:
- configuration- the launch configuration
- monitor- a progress monitor
- Throws:
- CoreException
 
 
- 
 
-