|
Eclipse JDT Release 3.8 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.debug.core.model.LaunchConfigurationDelegate
org.eclipse.jdt.launching.AbstractJavaLaunchConfigurationDelegate
org.eclipse.jdt.junit.launcher.JUnitLaunchConfigurationDelegate
public class JUnitLaunchConfigurationDelegate
Launch configuration delegate for a JUnit test as a Java application.
Clients can instantiate and extend this class.
Field Summary |
---|
Fields inherited from class org.eclipse.debug.core.model.LaunchConfigurationDelegate |
---|
complileErrorProjectPromptStatus, complileErrorPromptStatus, promptStatus, saveScopedDirtyEditors, switchToDebugPromptStatus |
Constructor Summary | |
---|---|
JUnitLaunchConfigurationDelegate()
|
Method Summary | |
---|---|
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. |
Methods inherited from class org.eclipse.debug.core.model.LaunchConfigurationDelegate |
---|
addReferencedProjects, buildForLaunch, buildProjects, computeBuildOrder, computeReferencedBuildOrder, existsProblems, finalLaunchCheck, getLaunch, saveBeforeLaunch |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JUnitLaunchConfigurationDelegate()
Method Detail |
---|
public void launch(ILaunchConfiguration configuration, String mode, ILaunch launch, IProgressMonitor monitor) throws CoreException
CoreException
protected 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 use
CoreException
- an exception is thrown when the verification failspublic String verifyMainTypeName(ILaunchConfiguration configuration) throws CoreException
AbstractJavaLaunchConfigurationDelegate
verifyMainTypeName
in class AbstractJavaLaunchConfigurationDelegate
configuration
- launch configuration
CoreException
- 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 monitor
CoreException
- 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 arguments
CoreException
- if unable to collect the execution argumentspublic String[] getClasspath(ILaunchConfiguration configuration) throws CoreException
AbstractJavaLaunchConfigurationDelegate
getClasspath
in class AbstractJavaLaunchConfigurationDelegate
configuration
- launch configuration
CoreException
- if unable to retrieve the attributeprotected void abort(String message, Throwable exception, int code) throws CoreException
AbstractJavaLaunchConfigurationDelegate
abort
in class AbstractJavaLaunchConfigurationDelegate
message
- the status messageexception
- lower level exception associated with the error, or
null
if nonecode
- error code
CoreException
- the "abort" core exception
|
Eclipse JDT Release 3.8 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) 2000, 2013 IBM Corporation and others. All rights reserved.