|
TPTP 4.3.0 Testing Tools Project Public API Specification |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.eclipse.hyades.test.core.launch.delegates.AbstractLaunchConfigurationDelegate2
This class is an abstract LaunchConfigurationDelegate that all TPTP launch configuration
delegates extend. It handles the common properties and behaviors for launching
a TPTP launch configuration.
Sub-classes should implement getLaunchedElement(ILaunchConfiguration),
invokeTestExecutionHarness(ILaunchConfiguration, String, StringBuffer).
They should usually also override validate(ILaunchConfiguration).
| Constructor Summary | |
|---|---|
AbstractLaunchConfigurationDelegate2()
|
|
| Method Summary | |
|---|---|
protected abstract java.lang.Object |
getLaunchedElement(org.eclipse.debug.core.ILaunchConfiguration configuration)
Get the Test Element that the configuration will launch. |
protected org.eclipse.emf.ecore.resource.ResourceSet |
getResourceSet()
Returns the Delegate's private Resource Set. |
protected abstract org.eclipse.hyades.execution.core.IExecutor |
invokeTestExecutionHarness(org.eclipse.debug.core.ILaunchConfiguration configuration,
java.lang.String mode,
java.lang.StringBuffer errorMessages,
org.eclipse.core.runtime.IProgressMonitor monitor)
Invokes the Test Execution Harness with the appropriate information from the given Launch Configuration, in the specified mode. |
void |
launch(org.eclipse.debug.core.ILaunchConfiguration configuration,
java.lang.String mode,
org.eclipse.debug.core.ILaunch launch,
org.eclipse.core.runtime.IProgressMonitor monitor)
This method is not meant to be overrided. |
protected void |
reportProblem(java.lang.String description)
This method is used when validating a configuration for reporting problems. |
protected void |
resetFields()
Allows to reset any private field. |
protected void |
validate(org.eclipse.debug.core.ILaunchConfiguration configuration,
java.lang.String mode)
Validate a given configuration. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public AbstractLaunchConfigurationDelegate2()
| Method Detail |
protected abstract java.lang.Object getLaunchedElement(org.eclipse.debug.core.ILaunchConfiguration configuration)
throws org.eclipse.core.runtime.CoreException
configuration - A Hyades Launch Configuration
org.eclipse.core.runtime.CoreException
protected void validate(org.eclipse.debug.core.ILaunchConfiguration configuration,
java.lang.String mode)
throws org.eclipse.core.runtime.CoreException
reportProblem(String) (one or more times) for reporting any problems
found in the configuration. If this method is not invoked, the configuration is considered
as valid. Overriding methods should invoke the parent method using
super.validate(configuration, mode).
configuration - A Hyades Launch Configurationmode - The run mode the Launch Configuration should be running in.
org.eclipse.core.runtime.CoreException
protected abstract org.eclipse.hyades.execution.core.IExecutor invokeTestExecutionHarness(org.eclipse.debug.core.ILaunchConfiguration configuration,
java.lang.String mode,
java.lang.StringBuffer errorMessages,
org.eclipse.core.runtime.IProgressMonitor monitor)
throws org.eclipse.core.runtime.CoreException
configuration - A Hyades Launch Configurationmode - The run mode the Launch Configuration should be running in.errorMessages - This is initially an empty buffer that this method should fill
with the errors reported by the Test Execution Harness. The Test Execution Harness will be
considered as failed if this buffer is not empty after the call to this method.
org.eclipse.core.runtime.CoreExceptionprotected void reportProblem(java.lang.String description)
validate for reporting
several problems.
Invoking this method from another method than validate has no effect.
description - A description of the problem to report.protected void resetFields()
protected org.eclipse.emf.ecore.resource.ResourceSet getResourceSet()
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.ILaunchConfigurationDelegateorg.eclipse.core.runtime.CoreException
|
TPTP 4.3.0 Testing Tools Project Public API Specification |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||