|
Eclipse PDE Release 3.7 |
|||||||||
| 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(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 vmArguments,
List 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 |
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)
|
| 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(ILaunchConfiguration configuration,
String mode)
throws CoreException
getVMRunner in class AbstractJavaLaunchConfigurationDelegateCoreException
public String verifyMainTypeName(ILaunchConfiguration configuration)
throws CoreException
verifyMainTypeName in class JUnitLaunchConfigurationDelegateCoreException
protected void abort(String message,
Throwable exception,
int code)
throws CoreException
abort in class JUnitLaunchConfigurationDelegateCoreException
protected void collectExecutionArguments(ILaunchConfiguration configuration,
List vmArguments,
List programArgs)
throws CoreException
collectExecutionArguments in class JUnitLaunchConfigurationDelegateCoreExceptionprotected String getApplication(ILaunchConfiguration configuration)
configuration -
public String getProgramArguments(ILaunchConfiguration configuration)
throws CoreException
getProgramArguments in class AbstractJavaLaunchConfigurationDelegateCoreException
public String getVMArguments(ILaunchConfiguration configuration)
throws CoreException
getVMArguments in class AbstractJavaLaunchConfigurationDelegateCoreException
public String[] getEnvironment(ILaunchConfiguration configuration)
throws CoreException
getEnvironment in class AbstractJavaLaunchConfigurationDelegateCoreException
public String[] getClasspath(ILaunchConfiguration configuration)
throws CoreException
getClasspath in class JUnitLaunchConfigurationDelegateCoreException
public File getWorkingDirectory(ILaunchConfiguration configuration)
throws CoreException
getWorkingDirectory in class AbstractJavaLaunchConfigurationDelegateCoreException
public Map getVMSpecificAttributesMap(ILaunchConfiguration configuration)
throws CoreException
getVMSpecificAttributesMap in class AbstractJavaLaunchConfigurationDelegateCoreException
protected void setDefaultSourceLocator(ILaunch launch,
ILaunchConfiguration configuration)
throws CoreException
setDefaultSourceLocator in class AbstractJavaLaunchConfigurationDelegateCoreExceptionprotected File getConfigurationDirectory(ILaunchConfiguration configuration)
configuration - the launch configuration
protected IProject[] getBuildOrder(ILaunchConfiguration configuration,
String mode)
throws CoreException
getBuildOrder in class AbstractJavaLaunchConfigurationDelegateCoreException
protected IProject[] getProjectsForProblemSearch(ILaunchConfiguration configuration,
String mode)
throws CoreException
getProjectsForProblemSearch in class AbstractJavaLaunchConfigurationDelegateCoreExceptionprotected void manageLaunch(ILaunch launch)
launch - the launch
protected void preLaunchCheck(ILaunchConfiguration configuration,
ILaunch launch,
IProgressMonitor monitor)
throws CoreException
preLaunchCheck in class JUnitLaunchConfigurationDelegateCoreException
protected void synchronizeManifests(ILaunchConfiguration configuration,
IProgressMonitor monitor)
configuration - the launch configurationmonitor - the progress monitor
protected void clear(ILaunchConfiguration configuration,
IProgressMonitor monitor)
throws CoreException
configuration - the launch configurationmonitor - the progress monitor
CoreException - if unable to retrieve launch attribute values
protected void validateProjectDependencies(ILaunchConfiguration configuration,
IProgressMonitor monitor)
configuration - the launch configurationmonitor - a progress monitor
protected void validatePluginDependencies(ILaunchConfiguration configuration,
IProgressMonitor monitor)
throws CoreException
configuration - the launch configurationmonitor - a progress monitor
CoreException
|
Eclipse PDE Release 3.7 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Guidelines for using Eclipse APIs.
Copyright (c) 2000, 2011 IBM Corporation and others. All rights reserved.