public class JUnitLaunchConfigurationDelegate extends AbstractJavaLaunchConfigurationDelegate
Clients can instantiate and extend this class.
complileErrorProjectPromptStatus, complileErrorPromptStatus, promptStatus, saveScopedDirtyEditors, switchToDebugPromptStatus| Constructor and Description |
|---|
JUnitLaunchConfigurationDelegate() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
abort(String message,
Throwable exception,
int code)
Throws a core exception with an error status object built from the given
message, lower level exception, and error code.
|
protected void |
collectExecutionArguments(ILaunchConfiguration configuration,
List vmArguments,
List programArguments)
Collects all VM and program arguments.
|
protected IMember[] |
evaluateTests(ILaunchConfiguration configuration,
IProgressMonitor monitor)
Evaluates all test elements selected by the given launch configuration.
|
String[] |
getClasspath(ILaunchConfiguration configuration)
Returns the entries that should appear on the user portion of the
classpath as specified by the given launch configuration, as an array of
resolved strings.
|
void |
launch(ILaunchConfiguration configuration,
String mode,
ILaunch launch,
IProgressMonitor monitor) |
protected void |
preLaunchCheck(ILaunchConfiguration configuration,
ILaunch launch,
IProgressMonitor monitor)
Performs a check on the launch configuration's attributes.
|
String |
verifyMainTypeName(ILaunchConfiguration configuration)
Verifies a main type name is specified by the given launch configuration,
and returns the main type name.
|
getBootpath, getBootpathExt, getBreakpoints, getBuildOrder, getDefaultWorkingDirectory, getEnvironment, getJavaLibraryPath, getJavaProject, getJavaProjectName, getLaunchManager, getMainTypeName, getProgramArguments, getProjectsForProblemSearch, getVMArguments, getVMConnectorId, getVMInstall, getVMInstallName, getVMInstallType, getVMInstallTypeId, getVMRunner, getVMSpecificAttributesMap, getWorkingDirectory, getWorkingDirectoryPath, handleDebugEvents, isAllowTerminate, isLaunchProblem, isStopInMain, preLaunchCheck, prepareStopInMain, setDefaultSourceLocator, verifyJavaProject, verifyVMInstall, verifyWorkingDirectoryaddReferencedProjects, buildForLaunch, buildProjects, computeBuildOrder, computeReferencedBuildOrder, existsProblems, finalLaunchCheck, getLaunch, saveBeforeLaunchpublic void launch(ILaunchConfiguration configuration, String mode, ILaunch launch, IProgressMonitor monitor) throws CoreException
CoreExceptionprotected void preLaunchCheck(ILaunchConfiguration configuration, ILaunch launch, IProgressMonitor monitor) throws CoreException
CoreException
with the error is thrown.configuration - the launch configuration to verifylaunch - the launch to verifymonitor - the progress monitor to useCoreException - an exception is thrown when the verification failspublic String verifyMainTypeName(ILaunchConfiguration configuration) throws CoreException
AbstractJavaLaunchConfigurationDelegateverifyMainTypeName in class AbstractJavaLaunchConfigurationDelegateconfiguration - launch configurationCoreException - if unable to retrieve the attribute or the attribute is
unspecifiedprotected IMember[] evaluateTests(ILaunchConfiguration configuration, IProgressMonitor monitor) throws CoreException
IType or IMethod. At the moment it is only possible to run a single method or a set of types, but not
mixed or more than one method at a time.configuration - the launch configuration to inspectmonitor - the progress monitorCoreException - an exception is thrown when the search for tests failedprotected void collectExecutionArguments(ILaunchConfiguration configuration, List vmArguments, List programArguments) throws CoreException
configuration - the configuration to collect the arguments forvmArguments - a List of String representing the resulting VM argumentsprogramArguments - a List of String representing the resulting program argumentsCoreException - if unable to collect the execution argumentspublic String[] getClasspath(ILaunchConfiguration configuration) throws CoreException
AbstractJavaLaunchConfigurationDelegategetClasspath in class AbstractJavaLaunchConfigurationDelegateconfiguration - launch configurationCoreException - if unable to retrieve the attributeprotected void abort(String message, Throwable exception, int code) throws CoreException
AbstractJavaLaunchConfigurationDelegateabort in class AbstractJavaLaunchConfigurationDelegatemessage - the status messageexception - lower level exception associated with the error, or
null if nonecode - error codeCoreException - the "abort" core exception
Copyright (c) 2000, 2014 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.