|
||||||||||
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.internal.junit.launcher.JUnitBaseLaunchConfiguration
org.eclipse.mylar.internal.java.ui.junit.JUnitLaunchConfigurationDelegateCOPY
public abstract class JUnitLaunchConfigurationDelegateCOPY
A launch delegate for launching JUnit Plug-in tests.
Note: This class may still undergo significant changes in 3.3 before it stabilizes
Field Summary | |
---|---|
static java.lang.String |
CORE_APPLICATION
|
protected java.io.File |
fConfigDir
|
private java.util.Map |
fPluginMap
|
static java.lang.String[] |
REQUIRED_PLUGINS
|
static java.lang.String |
UI_APPLICATION
|
Fields inherited from class org.eclipse.jdt.internal.junit.launcher.JUnitBaseLaunchConfiguration |
---|
ATTR_KEEPRUNNING, FAILURES_FILENAME_ATTR, LAUNCH_CONTAINER_ATTR, NO_DISPLAY_ATTR, PORT_ATTR, RUN_QUIETLY_MODE, TEST_KIND_ATTR, TESTNAME_ATTR, TESTTYPE_ATTR |
Fields inherited from class org.eclipse.debug.core.model.LaunchConfigurationDelegate |
---|
complileErrorProjectPromptStatus, complileErrorPromptStatus, promptStatus, saveScopedDirtyEditors, switchToDebugPromptStatus |
Constructor Summary | |
---|---|
JUnitLaunchConfigurationDelegateCOPY()
|
Method Summary | |
---|---|
protected void |
abort(java.lang.String message,
java.lang.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 org.eclipse.jdt.launching.VMRunnerConfiguration |
createVMRunner(org.eclipse.debug.core.ILaunchConfiguration configuration,
org.eclipse.jdt.internal.junit.launcher.TestSearchResult testTypes,
int port,
java.lang.String runMode)
|
protected abstract org.eclipse.jdt.internal.junit.launcher.TestSearchResult |
customFindTestTypes(org.eclipse.debug.core.ILaunchConfiguration configuration,
org.eclipse.core.runtime.IProgressMonitor pm)
|
private org.eclipse.pde.core.plugin.IPluginModelBase |
findPlugin(java.lang.String id)
|
protected org.eclipse.core.resources.IProject[] |
getBuildOrder(org.eclipse.debug.core.ILaunchConfiguration configuration,
java.lang.String mode)
|
java.lang.String[] |
getClasspath(org.eclipse.debug.core.ILaunchConfiguration configuration)
|
protected java.io.File |
getConfigurationDirectory(org.eclipse.debug.core.ILaunchConfiguration configuration)
Returns the location of the configuration area |
java.lang.String[] |
getEnvironment(org.eclipse.debug.core.ILaunchConfiguration configuration)
|
java.lang.String |
getProgramArguments(org.eclipse.debug.core.ILaunchConfiguration configuration)
|
private java.lang.String[] |
getProgramArgumentsArray(org.eclipse.debug.core.ILaunchConfiguration configuration,
org.eclipse.jdt.internal.junit.launcher.TestSearchResult testSearchResult,
int port,
java.lang.String runMode)
Returns the program arguments to launch with. |
protected org.eclipse.core.resources.IProject[] |
getProjectsForProblemSearch(org.eclipse.debug.core.ILaunchConfiguration configuration,
java.lang.String mode)
|
private java.lang.String |
getTestPluginId(org.eclipse.debug.core.ILaunchConfiguration configuration)
|
java.lang.String |
getVMArguments(org.eclipse.debug.core.ILaunchConfiguration configuration)
|
org.eclipse.jdt.launching.IVMRunner |
getVMRunner(org.eclipse.debug.core.ILaunchConfiguration configuration,
java.lang.String mode)
|
java.util.Map |
getVMSpecificAttributesMap(org.eclipse.debug.core.ILaunchConfiguration configuration)
|
java.io.File |
getWorkingDirectory(org.eclipse.debug.core.ILaunchConfiguration configuration)
|
void |
launch(org.eclipse.debug.core.ILaunchConfiguration configuration,
java.lang.String mode,
org.eclipse.debug.core.ILaunch launch,
org.eclipse.core.runtime.IProgressMonitor monitor)
|
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)
Does sanity checking before launching. |
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. |
Methods inherited from class org.eclipse.jdt.internal.junit.launcher.JUnitBaseLaunchConfiguration |
---|
containerTestTarget, defaultTestLoaderClass, findTestTypes, getBasicArguments, informAndAbort, keepAlive, launchTypes, performStringSubstitution, singleTypeTarget, testSearchTarget |
Methods inherited from class org.eclipse.jdt.launching.AbstractJavaLaunchConfigurationDelegate |
---|
getBootpath, getBootpathExt, getBreakpoints, getDefaultWorkingDirectory, getJavaLibraryPath, getJavaProject, getJavaProjectName, getLaunchManager, getMainTypeName, getVMConnectorId, getVMInstall, getVMInstallName, getVMInstallType, getVMInstallTypeId, getWorkingDirectoryPath, handleDebugEvents, isAllowTerminate, isLaunchProblem, isStopInMain, preLaunchCheck, prepareStopInMain, verifyJavaProject, verifyMainTypeName, verifyVMInstall, verifyWorkingDirectory |
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 |
---|
public static final java.lang.String CORE_APPLICATION
public static final java.lang.String UI_APPLICATION
public static java.lang.String[] REQUIRED_PLUGINS
protected java.io.File fConfigDir
private java.util.Map fPluginMap
Constructor Detail |
---|
public JUnitLaunchConfigurationDelegateCOPY()
Method Detail |
---|
protected abstract org.eclipse.jdt.internal.junit.launcher.TestSearchResult customFindTestTypes(org.eclipse.debug.core.ILaunchConfiguration configuration, org.eclipse.core.runtime.IProgressMonitor pm) throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreException
private java.lang.String getTestPluginId(org.eclipse.debug.core.ILaunchConfiguration configuration) throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreException
public void launch(org.eclipse.debug.core.ILaunchConfiguration configuration, java.lang.String mode, org.eclipse.debug.core.ILaunch launch, org.eclipse.core.runtime.IProgressMonitor monitor) throws org.eclipse.core.runtime.CoreException
launch
in interface org.eclipse.debug.core.model.ILaunchConfigurationDelegate
launch
in class org.eclipse.jdt.internal.junit.launcher.JUnitBaseLaunchConfiguration
org.eclipse.core.runtime.CoreException
public org.eclipse.jdt.launching.IVMRunner getVMRunner(org.eclipse.debug.core.ILaunchConfiguration configuration, java.lang.String mode) throws org.eclipse.core.runtime.CoreException
getVMRunner
in class org.eclipse.jdt.launching.AbstractJavaLaunchConfigurationDelegate
org.eclipse.core.runtime.CoreException
protected org.eclipse.jdt.launching.VMRunnerConfiguration createVMRunner(org.eclipse.debug.core.ILaunchConfiguration configuration, org.eclipse.jdt.internal.junit.launcher.TestSearchResult testTypes, int port, java.lang.String runMode) throws org.eclipse.core.runtime.CoreException
createVMRunner
in class org.eclipse.jdt.internal.junit.launcher.JUnitBaseLaunchConfiguration
org.eclipse.core.runtime.CoreException
protected void abort(java.lang.String message, java.lang.Throwable exception, int code) throws org.eclipse.core.runtime.CoreException
abort
in class org.eclipse.jdt.internal.junit.launcher.JUnitBaseLaunchConfiguration
org.eclipse.core.runtime.CoreException
private java.lang.String[] getProgramArgumentsArray(org.eclipse.debug.core.ILaunchConfiguration configuration, org.eclipse.jdt.internal.junit.launcher.TestSearchResult testSearchResult, int port, java.lang.String runMode) throws org.eclipse.core.runtime.CoreException
configuration
- launch configuration
org.eclipse.core.runtime.CoreException
- if unable to retrieve the attribute or create the
necessary configuration filesprivate org.eclipse.pde.core.plugin.IPluginModelBase findPlugin(java.lang.String id) throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreException
public java.lang.String getProgramArguments(org.eclipse.debug.core.ILaunchConfiguration configuration) throws org.eclipse.core.runtime.CoreException
getProgramArguments
in class org.eclipse.jdt.launching.AbstractJavaLaunchConfigurationDelegate
org.eclipse.core.runtime.CoreException
public java.lang.String getVMArguments(org.eclipse.debug.core.ILaunchConfiguration configuration) throws org.eclipse.core.runtime.CoreException
getVMArguments
in class org.eclipse.jdt.launching.AbstractJavaLaunchConfigurationDelegate
org.eclipse.core.runtime.CoreException
public java.lang.String[] getEnvironment(org.eclipse.debug.core.ILaunchConfiguration configuration) throws org.eclipse.core.runtime.CoreException
getEnvironment
in class org.eclipse.jdt.launching.AbstractJavaLaunchConfigurationDelegate
org.eclipse.core.runtime.CoreException
public java.lang.String[] getClasspath(org.eclipse.debug.core.ILaunchConfiguration configuration) throws org.eclipse.core.runtime.CoreException
getClasspath
in class org.eclipse.jdt.launching.AbstractJavaLaunchConfigurationDelegate
org.eclipse.core.runtime.CoreException
public java.io.File getWorkingDirectory(org.eclipse.debug.core.ILaunchConfiguration configuration) throws org.eclipse.core.runtime.CoreException
getWorkingDirectory
in class org.eclipse.jdt.launching.AbstractJavaLaunchConfigurationDelegate
org.eclipse.core.runtime.CoreException
public java.util.Map getVMSpecificAttributesMap(org.eclipse.debug.core.ILaunchConfiguration configuration) throws org.eclipse.core.runtime.CoreException
getVMSpecificAttributesMap
in class org.eclipse.jdt.launching.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 org.eclipse.jdt.launching.AbstractJavaLaunchConfigurationDelegate
org.eclipse.core.runtime.CoreException
protected java.io.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, java.lang.String mode) throws org.eclipse.core.runtime.CoreException
getBuildOrder
in class org.eclipse.jdt.launching.AbstractJavaLaunchConfigurationDelegate
org.eclipse.core.runtime.CoreException
protected org.eclipse.core.resources.IProject[] getProjectsForProblemSearch(org.eclipse.debug.core.ILaunchConfiguration configuration, java.lang.String mode) throws org.eclipse.core.runtime.CoreException
getProjectsForProblemSearch
in class org.eclipse.jdt.launching.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
configuration
- launch configurationlaunch
- the launch object to contribute processes and debug targets tomonitor
- a progress monitor
org.eclipse.core.runtime.CoreException
- exception thrown if launch fails or canceled or if unable to
retrieve attributes from the launch configurationprotected 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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |