public class JUnitLaunchConfigurationDelegate extends JUnitLaunchConfigurationDelegate
This class originally existed in 3.3 as
org.eclipse.pde.ui.launcher.JUnitLaunchConfigurationDelegate
.
Modifier and Type | Field and Description |
---|---|
protected File |
fConfigDir
Caches the configuration directory when a launch is started
|
complileErrorProjectPromptStatus, complileErrorPromptStatus, promptStatus, saveScopedDirtyEditors, switchToDebugPromptStatus
Constructor and Description |
---|
JUnitLaunchConfigurationDelegate() |
Modifier and Type | Method and Description |
---|---|
protected void |
abort(String message,
Throwable exception,
int code) |
protected void |
clear(ILaunchConfiguration configuration,
IProgressMonitor monitor)
Clears the workspace prior to launching if the workspace exists and the option to
clear it is turned on.
|
protected void |
collectExecutionArguments(ILaunchConfiguration configuration,
List<String> vmArguments,
List<String> programArgs) |
protected String |
getApplication(ILaunchConfiguration configuration)
Returns the application to launch plug-in tests with
|
protected IProject[] |
getBuildOrder(ILaunchConfiguration configuration,
String mode) |
String[] |
getClasspath(ILaunchConfiguration configuration) |
protected File |
getConfigurationDirectory(ILaunchConfiguration configuration)
Returns the location of the configuration area
|
String[] |
getEnvironment(ILaunchConfiguration configuration) |
String |
getProgramArguments(ILaunchConfiguration configuration) |
protected IProject[] |
getProjectsForProblemSearch(ILaunchConfiguration configuration,
String mode) |
String |
getVMArguments(ILaunchConfiguration configuration) |
IVMRunner |
getVMRunner(ILaunchConfiguration configuration,
String mode) |
Map<String,Object> |
getVMSpecificAttributesMap(ILaunchConfiguration configuration) |
File |
getWorkingDirectory(ILaunchConfiguration configuration) |
protected void |
manageLaunch(ILaunch launch)
Adds a listener to the launch to be notified at interesting launch lifecycle
events such as when the launch terminates.
|
protected void |
preLaunchCheck(ILaunchConfiguration configuration,
ILaunch launch,
IProgressMonitor monitor) |
protected void |
setDefaultSourceLocator(ILaunch launch,
ILaunchConfiguration configuration) |
protected void |
synchronizeManifests(ILaunchConfiguration configuration,
IProgressMonitor monitor)
Checks for old-style plugin.xml files that have become stale since the last launch.
|
protected void |
validatePluginDependencies(ILaunchConfiguration configuration,
IProgressMonitor monitor)
Validates inter-bundle dependencies automatically prior to launching
if that option is turned on.
|
protected void |
validateProjectDependencies(ILaunchConfiguration configuration,
IProgressMonitor monitor)
Checks if the Automated Management of Dependencies option is turned on.
|
String |
verifyMainTypeName(ILaunchConfiguration configuration) |
evaluateTests, launch
getBootpath, getBootpathExt, getBreakpoints, getDefaultWorkingDirectory, getJavaLibraryPath, getJavaProject, getJavaProjectName, getLaunchManager, getMainTypeName, getVMConnectorId, getVMInstall, getVMInstallName, getVMInstallType, getVMInstallTypeId, getWorkingDirectoryPath, handleDebugEvents, isAllowTerminate, isLaunchProblem, isStopInMain, preLaunchCheck, prepareStopInMain, verifyJavaProject, verifyVMInstall, verifyWorkingDirectory
addReferencedProjects, buildForLaunch, buildProjects, computeBuildOrder, computeReferencedBuildOrder, existsProblems, finalLaunchCheck, getLaunch, saveBeforeLaunch
protected File fConfigDir
public IVMRunner getVMRunner(ILaunchConfiguration configuration, String mode) throws CoreException
getVMRunner
in class AbstractJavaLaunchConfigurationDelegate
CoreException
public String verifyMainTypeName(ILaunchConfiguration configuration) throws CoreException
verifyMainTypeName
in class JUnitLaunchConfigurationDelegate
CoreException
protected void abort(String message, Throwable exception, int code) throws CoreException
abort
in class JUnitLaunchConfigurationDelegate
CoreException
protected void collectExecutionArguments(ILaunchConfiguration configuration, List<String> vmArguments, List<String> programArgs) throws CoreException
collectExecutionArguments
in class JUnitLaunchConfigurationDelegate
CoreException
protected String getApplication(ILaunchConfiguration configuration)
configuration
- public String getProgramArguments(ILaunchConfiguration configuration) throws CoreException
getProgramArguments
in class AbstractJavaLaunchConfigurationDelegate
CoreException
public String getVMArguments(ILaunchConfiguration configuration) throws CoreException
getVMArguments
in class AbstractJavaLaunchConfigurationDelegate
CoreException
public String[] getEnvironment(ILaunchConfiguration configuration) throws CoreException
getEnvironment
in class AbstractJavaLaunchConfigurationDelegate
CoreException
public String[] getClasspath(ILaunchConfiguration configuration) throws CoreException
getClasspath
in class JUnitLaunchConfigurationDelegate
CoreException
public File getWorkingDirectory(ILaunchConfiguration configuration) throws CoreException
getWorkingDirectory
in class AbstractJavaLaunchConfigurationDelegate
CoreException
public Map<String,Object> getVMSpecificAttributesMap(ILaunchConfiguration configuration) throws CoreException
getVMSpecificAttributesMap
in class AbstractJavaLaunchConfigurationDelegate
CoreException
protected void setDefaultSourceLocator(ILaunch launch, ILaunchConfiguration configuration) throws CoreException
setDefaultSourceLocator
in class AbstractJavaLaunchConfigurationDelegate
CoreException
protected File getConfigurationDirectory(ILaunchConfiguration configuration)
configuration
- the launch configurationprotected IProject[] getBuildOrder(ILaunchConfiguration configuration, String mode) throws CoreException
getBuildOrder
in class AbstractJavaLaunchConfigurationDelegate
CoreException
protected IProject[] getProjectsForProblemSearch(ILaunchConfiguration configuration, String mode) throws CoreException
getProjectsForProblemSearch
in class AbstractJavaLaunchConfigurationDelegate
CoreException
protected void manageLaunch(ILaunch launch)
launch
- the launchprotected void preLaunchCheck(ILaunchConfiguration configuration, ILaunch launch, IProgressMonitor monitor) throws CoreException
preLaunchCheck
in class JUnitLaunchConfigurationDelegate
CoreException
protected void synchronizeManifests(ILaunchConfiguration configuration, IProgressMonitor monitor)
configuration
- the launch configurationmonitor
- the progress monitorprotected void clear(ILaunchConfiguration configuration, IProgressMonitor monitor) throws CoreException
configuration
- the launch configurationmonitor
- the progress monitorCoreException
- if unable to retrieve launch attribute valuesprotected void validateProjectDependencies(ILaunchConfiguration configuration, IProgressMonitor monitor)
configuration
- the launch configurationmonitor
- a progress monitorprotected void validatePluginDependencies(ILaunchConfiguration configuration, IProgressMonitor monitor) throws CoreException
configuration
- the launch configurationmonitor
- a progress monitorCoreException
Copyright (c) 2000, 2016 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.