|
Eclipse PDE Release 3.6 |
||||||||||
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
org.eclipse.pde.launching.JUnitLaunchConfigurationDelegate
public class JUnitLaunchConfigurationDelegate
A launch delegate for launching JUnit Plug-in tests.
This class originally existed in 3.3 as
org.eclipse.pde.ui.launcher.JUnitLaunchConfigurationDelegate
.
Field Summary | |
---|---|
protected File |
fConfigDir
|
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)
|
protected void |
clear(org.eclipse.debug.core.ILaunchConfiguration configuration,
org.eclipse.core.runtime.IProgressMonitor monitor)
Clears the workspace prior to launching if the workspace exists and the option to clear it is turned on. |
protected void |
collectExecutionArguments(org.eclipse.debug.core.ILaunchConfiguration configuration,
List vmArguments,
List programArgs)
|
protected String |
getApplication(org.eclipse.debug.core.ILaunchConfiguration configuration)
Returns the application to launch plug-in tests with |
protected org.eclipse.core.resources.IProject[] |
getBuildOrder(org.eclipse.debug.core.ILaunchConfiguration configuration,
String mode)
|
String[] |
getClasspath(org.eclipse.debug.core.ILaunchConfiguration configuration)
|
protected File |
getConfigurationDirectory(org.eclipse.debug.core.ILaunchConfiguration configuration)
Returns the location of the configuration area |
String[] |
getEnvironment(org.eclipse.debug.core.ILaunchConfiguration configuration)
|
String |
getProgramArguments(org.eclipse.debug.core.ILaunchConfiguration configuration)
|
protected org.eclipse.core.resources.IProject[] |
getProjectsForProblemSearch(org.eclipse.debug.core.ILaunchConfiguration configuration,
String mode)
|
String |
getVMArguments(org.eclipse.debug.core.ILaunchConfiguration configuration)
|
IVMRunner |
getVMRunner(org.eclipse.debug.core.ILaunchConfiguration configuration,
String mode)
|
Map |
getVMSpecificAttributesMap(org.eclipse.debug.core.ILaunchConfiguration configuration)
|
File |
getWorkingDirectory(org.eclipse.debug.core.ILaunchConfiguration configuration)
|
protected void |
manageLaunch(org.eclipse.debug.core.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(org.eclipse.debug.core.ILaunchConfiguration configuration,
org.eclipse.debug.core.ILaunch launch,
org.eclipse.core.runtime.IProgressMonitor monitor)
|
protected void |
setDefaultSourceLocator(org.eclipse.debug.core.ILaunch launch,
org.eclipse.debug.core.ILaunchConfiguration configuration)
|
protected void |
synchronizeManifests(org.eclipse.debug.core.ILaunchConfiguration configuration,
org.eclipse.core.runtime.IProgressMonitor monitor)
Checks for old-style plugin.xml files that have become stale since the last launch. |
protected void |
validatePluginDependencies(org.eclipse.debug.core.ILaunchConfiguration configuration,
org.eclipse.core.runtime.IProgressMonitor monitor)
Validates inter-bundle dependencies automatically prior to launching if that option is turned on. |
protected void |
validateProjectDependencies(org.eclipse.debug.core.ILaunchConfiguration configuration,
org.eclipse.core.runtime.IProgressMonitor monitor)
Checks if the Automated Management of Dependencies option is turned on. |
String |
verifyMainTypeName(org.eclipse.debug.core.ILaunchConfiguration configuration)
|
Methods inherited from class org.eclipse.jdt.junit.launcher.JUnitLaunchConfigurationDelegate |
---|
evaluateTests, launch |
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 |
Field Detail |
---|
protected File fConfigDir
Constructor Detail |
---|
public JUnitLaunchConfigurationDelegate()
Method Detail |
---|
public IVMRunner getVMRunner(org.eclipse.debug.core.ILaunchConfiguration configuration, String mode) throws org.eclipse.core.runtime.CoreException
getVMRunner
in class AbstractJavaLaunchConfigurationDelegate
org.eclipse.core.runtime.CoreException
public String verifyMainTypeName(org.eclipse.debug.core.ILaunchConfiguration configuration) throws org.eclipse.core.runtime.CoreException
verifyMainTypeName
in class JUnitLaunchConfigurationDelegate
org.eclipse.core.runtime.CoreException
protected void abort(String message, Throwable exception, int code) throws org.eclipse.core.runtime.CoreException
abort
in class JUnitLaunchConfigurationDelegate
org.eclipse.core.runtime.CoreException
protected void collectExecutionArguments(org.eclipse.debug.core.ILaunchConfiguration configuration, List vmArguments, List programArgs) throws org.eclipse.core.runtime.CoreException
collectExecutionArguments
in class JUnitLaunchConfigurationDelegate
org.eclipse.core.runtime.CoreException
protected String getApplication(org.eclipse.debug.core.ILaunchConfiguration configuration)
configuration
-
public String getProgramArguments(org.eclipse.debug.core.ILaunchConfiguration configuration) throws org.eclipse.core.runtime.CoreException
getProgramArguments
in class AbstractJavaLaunchConfigurationDelegate
org.eclipse.core.runtime.CoreException
public String getVMArguments(org.eclipse.debug.core.ILaunchConfiguration configuration) throws org.eclipse.core.runtime.CoreException
getVMArguments
in class AbstractJavaLaunchConfigurationDelegate
org.eclipse.core.runtime.CoreException
public String[] getEnvironment(org.eclipse.debug.core.ILaunchConfiguration configuration) throws org.eclipse.core.runtime.CoreException
getEnvironment
in class AbstractJavaLaunchConfigurationDelegate
org.eclipse.core.runtime.CoreException
public String[] getClasspath(org.eclipse.debug.core.ILaunchConfiguration configuration) throws org.eclipse.core.runtime.CoreException
getClasspath
in class JUnitLaunchConfigurationDelegate
org.eclipse.core.runtime.CoreException
public File getWorkingDirectory(org.eclipse.debug.core.ILaunchConfiguration configuration) throws org.eclipse.core.runtime.CoreException
getWorkingDirectory
in class AbstractJavaLaunchConfigurationDelegate
org.eclipse.core.runtime.CoreException
public Map getVMSpecificAttributesMap(org.eclipse.debug.core.ILaunchConfiguration configuration) throws org.eclipse.core.runtime.CoreException
getVMSpecificAttributesMap
in class AbstractJavaLaunchConfigurationDelegate
org.eclipse.core.runtime.CoreException
protected void setDefaultSourceLocator(org.eclipse.debug.core.ILaunch launch, org.eclipse.debug.core.ILaunchConfiguration configuration) throws org.eclipse.core.runtime.CoreException
setDefaultSourceLocator
in class AbstractJavaLaunchConfigurationDelegate
org.eclipse.core.runtime.CoreException
protected File getConfigurationDirectory(org.eclipse.debug.core.ILaunchConfiguration configuration)
configuration
- the launch configuration
protected org.eclipse.core.resources.IProject[] getBuildOrder(org.eclipse.debug.core.ILaunchConfiguration configuration, String mode) throws org.eclipse.core.runtime.CoreException
getBuildOrder
in class AbstractJavaLaunchConfigurationDelegate
org.eclipse.core.runtime.CoreException
protected org.eclipse.core.resources.IProject[] getProjectsForProblemSearch(org.eclipse.debug.core.ILaunchConfiguration configuration, String mode) throws org.eclipse.core.runtime.CoreException
getProjectsForProblemSearch
in class AbstractJavaLaunchConfigurationDelegate
org.eclipse.core.runtime.CoreException
protected void manageLaunch(org.eclipse.debug.core.ILaunch launch)
launch
- the launchprotected void preLaunchCheck(org.eclipse.debug.core.ILaunchConfiguration configuration, org.eclipse.debug.core.ILaunch launch, org.eclipse.core.runtime.IProgressMonitor monitor) throws org.eclipse.core.runtime.CoreException
preLaunchCheck
in class JUnitLaunchConfigurationDelegate
org.eclipse.core.runtime.CoreException
protected void synchronizeManifests(org.eclipse.debug.core.ILaunchConfiguration configuration, org.eclipse.core.runtime.IProgressMonitor monitor)
configuration
- the launch configurationmonitor
- the progress monitorprotected void clear(org.eclipse.debug.core.ILaunchConfiguration configuration, org.eclipse.core.runtime.IProgressMonitor monitor) throws org.eclipse.core.runtime.CoreException
configuration
- the launch configurationmonitor
- the progress monitor
org.eclipse.core.runtime.CoreException
- if unable to retrieve launch attribute valuesprotected void validateProjectDependencies(org.eclipse.debug.core.ILaunchConfiguration configuration, org.eclipse.core.runtime.IProgressMonitor monitor)
configuration
- the launch configurationmonitor
- a progress monitorprotected void validatePluginDependencies(org.eclipse.debug.core.ILaunchConfiguration configuration, org.eclipse.core.runtime.IProgressMonitor monitor) throws org.eclipse.core.runtime.CoreException
configuration
- the launch configurationmonitor
- a progress monitor
org.eclipse.core.runtime.CoreException
|
Eclipse PDE Release 3.6 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |