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)
Deprecated.
|
String[][] |
getClasspathAndModulepath(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) |
String |
showCommandLine(ILaunchConfiguration configuration,
String mode,
ILaunch launch,
IProgressMonitor monitor) |
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, launchallowAdvancedSourcelookup, getBootpath, getBootpathExt, getBreakpoints, getDefaultWorkingDirectory, getJavaLibraryPath, getJavaProject, getJavaProjectName, getLaunch, getLaunchManager, getMainTypeName, getModuleCLIOptions, getVMArguments, getVMConnectorId, getVMInstall, getVMInstallName, getVMInstallType, getVMInstallTypeId, getWorkingDirectoryPath, handleDebugEvents, isAllowTerminate, isLaunchProblem, isStopInMain, preLaunchCheck, prepareStopInMain, verifyJavaProject, verifyVMInstall, verifyWorkingDirectoryaddReferencedProjects, buildForLaunch, buildProjects, computeBuildOrder, computeReferencedBuildOrder, existsProblems, finalLaunchCheck, saveBeforeLaunchprotected File fConfigDir
public IVMRunner getVMRunner(ILaunchConfiguration configuration, String mode) throws CoreException
getVMRunner in class AbstractJavaLaunchConfigurationDelegateCoreExceptionpublic String verifyMainTypeName(ILaunchConfiguration configuration) throws CoreException
verifyMainTypeName in class JUnitLaunchConfigurationDelegateCoreExceptionprotected void abort(String message, Throwable exception, int code) throws CoreException
abort in class JUnitLaunchConfigurationDelegateCoreExceptionprotected void collectExecutionArguments(ILaunchConfiguration configuration, List<String> vmArguments, List<String> programArgs) throws CoreException
collectExecutionArguments in class JUnitLaunchConfigurationDelegateCoreExceptionpublic String showCommandLine(ILaunchConfiguration configuration, String mode, ILaunch launch, IProgressMonitor monitor) throws CoreException
showCommandLine in interface ILaunchConfigurationDelegateshowCommandLine in class JUnitLaunchConfigurationDelegateCoreExceptionprotected String getApplication(ILaunchConfiguration configuration)
configuration - public String getProgramArguments(ILaunchConfiguration configuration) throws CoreException
getProgramArguments in class AbstractJavaLaunchConfigurationDelegateCoreExceptionpublic String getVMArguments(ILaunchConfiguration configuration) throws CoreException
getVMArguments in class AbstractJavaLaunchConfigurationDelegateCoreExceptionpublic String[] getEnvironment(ILaunchConfiguration configuration) throws CoreException
getEnvironment in class AbstractJavaLaunchConfigurationDelegateCoreException@Deprecated public String[] getClasspath(ILaunchConfiguration configuration) throws CoreException
getClasspath in class JUnitLaunchConfigurationDelegateCoreExceptionpublic String[][] getClasspathAndModulepath(ILaunchConfiguration configuration) throws CoreException
getClasspathAndModulepath in class JUnitLaunchConfigurationDelegateCoreExceptionpublic File getWorkingDirectory(ILaunchConfiguration configuration) throws CoreException
getWorkingDirectory in class AbstractJavaLaunchConfigurationDelegateCoreExceptionpublic Map<String,Object> getVMSpecificAttributesMap(ILaunchConfiguration configuration) throws CoreException
getVMSpecificAttributesMap in class AbstractJavaLaunchConfigurationDelegateCoreExceptionprotected void setDefaultSourceLocator(ILaunch launch, ILaunchConfiguration configuration) throws CoreException
setDefaultSourceLocator in class AbstractJavaLaunchConfigurationDelegateCoreExceptionprotected File getConfigurationDirectory(ILaunchConfiguration configuration)
configuration - the launch configurationprotected IProject[] getBuildOrder(ILaunchConfiguration configuration, String mode) throws CoreException
getBuildOrder in class AbstractJavaLaunchConfigurationDelegateCoreExceptionprotected IProject[] getProjectsForProblemSearch(ILaunchConfiguration configuration, String mode) throws CoreException
getProjectsForProblemSearch in class AbstractJavaLaunchConfigurationDelegateCoreExceptionprotected void manageLaunch(ILaunch launch)
launch - the launchprotected void preLaunchCheck(ILaunchConfiguration configuration, ILaunch launch, IProgressMonitor monitor) throws CoreException
preLaunchCheck in class JUnitLaunchConfigurationDelegateCoreExceptionprotected 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, 2018 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.