TPTP 4.4.0 Testing Tools Project
Public API Specification

org.eclipse.hyades.test.core.launch.extensions
Interface IExecutionHistoryDefaultsProvider2

All Known Subinterfaces:
IExecutionHistoryDefaultsProvider2Extended

public interface IExecutionHistoryDefaultsProvider2

This interface is to be implemented by plugins extending the org.eclipse.hyades.test.core.launchconfigExecutionHistoryDefaults2 extension point.

Classes implementing this interface are responsible of providing default values for the Test Log tab, when the Test Log tab appears in a launch configuration defined by a client plugin.


Method Summary
 org.eclipse.core.resources.IContainer getDefaultLocation(org.eclipse.debug.core.ILaunchConfiguration launchConfiguration)
          Returns the default test log location for the given Launch Configuration.
 java.lang.String getDefaultName(org.eclipse.debug.core.ILaunchConfiguration launchConfiguration)
          Returns the default test log name for the given Launch Configuration.
 boolean getDefaultOverrideState(org.eclipse.debug.core.ILaunchConfiguration launchConfiguration)
          Return the default state for the "Overwrite" check box for the given Launch Configuration.
 

Method Detail

getDefaultName

public java.lang.String getDefaultName(org.eclipse.debug.core.ILaunchConfiguration launchConfiguration)
Returns the default test log name for the given Launch Configuration.

Parameters:
launchConfiguration - A launch configuration.
Returns:
The default name for the test log produced by the execution of the Launch Configuration.

getDefaultOverrideState

public boolean getDefaultOverrideState(org.eclipse.debug.core.ILaunchConfiguration launchConfiguration)
Return the default state for the "Overwrite" check box for the given Launch Configuration. TPTP default is false.
State false means that an existing resource with the supplied name will not be overwritten if it already exists. In that case, a unique name will be generated, starting with the supplied name.

Parameters:
launchConfiguration - A launch configuration.
Returns:
false for leaving the check box unchecked, true otherwise.

getDefaultLocation

public org.eclipse.core.resources.IContainer getDefaultLocation(org.eclipse.debug.core.ILaunchConfiguration launchConfiguration)
Returns the default test log location for the given Launch Configuration.

Parameters:
launchConfiguration - A launch configuration.
Returns:
The default location for the test log produced by the execution of the supplied launch configuration. This should be an instance of a workspace project or folder.

TPTP 4.4.0 Testing Tools Project
Public API Specification