TPTP 4.3.0 Testing Tools Project
Public API Specification

org.eclipse.tptp.test.provisional.recorder.ui.wizards
Class DefaultRecWizardProvider

java.lang.Object
  extended byorg.eclipse.tptp.test.provisional.recorder.ui.wizards.DefaultRecWizardProvider
All Implemented Interfaces:
IRecorderPageProvider, IRecorderProvider

public class DefaultRecWizardProvider
extends java.lang.Object
implements IRecorderPageProvider

A default implementation of IRecorderPageProvider. This provides 1 additonal page: TestsuiteLocationWizardPage This provides data for the testsuite path & the recording path (which is derived from the user-input testsuite path)

See Also:
IGenericRecorderPage, NewTestFromRecordingWizard

Field Summary
protected  java.util.HashMap dataMap
           
protected  Recorder recorder
           
 
Fields inherited from interface org.eclipse.tptp.test.provisional.recorder.ui.wizards.IRecorderPageProvider
WIZARD_KEY_APP_ADAPTER, WIZARD_KEY_CONFIG_PARAMS, WIZARD_KEY_RECORDING_PATH, WIZARD_KEY_TESTGEN_ID, WIZARD_KEY_TESTGEN_PATH
 
Constructor Summary
DefaultRecWizardProvider()
           
 
Method Summary
 boolean doCancel()
          Called if wizard Cancel button is pressed.
 boolean doFinish()
          Called if wizard Finish button is pressed.
 java.lang.Object getObjectValue(java.lang.String key)
          Returns an Object value from the wizard providers internal storage facility.
 Recorder getRecorder()
           
 java.lang.String getRecorderID()
           
 java.lang.String getValue(java.lang.String key)
          Returns a value from the wizard providers internal storage facility.
 IGenericRecorderWizard getWizard()
          Returns the containing wizard.
 IGenericRecorderPage[] getWizardPages(IGenericRecorderWizard wizard)
          Called by generic recorder wizard, provides additional recorder wizard pages
 void setRecorder(Recorder recorder)
          Sets a Recorder object.
 void setRecorder(java.lang.String id)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

recorder

protected Recorder recorder

dataMap

protected java.util.HashMap dataMap
Constructor Detail

DefaultRecWizardProvider

public DefaultRecWizardProvider()
Method Detail

getWizardPages

public IGenericRecorderPage[] getWizardPages(IGenericRecorderWizard wizard)
Description copied from interface: IRecorderPageProvider
Called by generic recorder wizard, provides additional recorder wizard pages

Specified by:
getWizardPages in interface IRecorderPageProvider
Returns:
IGenericRecorderPage[]

getValue

public java.lang.String getValue(java.lang.String key)
Description copied from interface: IRecorderPageProvider
Returns a value from the wizard providers internal storage facility. Used by recorder framework to access key data set in the wizard.

Specified by:
getValue in interface IRecorderPageProvider
Parameters:
key -
Returns:
String associated with the key value
key
or
null
if no data.

getObjectValue

public java.lang.Object getObjectValue(java.lang.String key)
Description copied from interface: IRecorderPageProvider
Returns an Object value from the wizard providers internal storage facility. Used by recorder framework to access key data set in the wizard.

Specified by:
getObjectValue in interface IRecorderPageProvider
Parameters:
key -
Returns:
Object associated with the key value
key
or
null
if no data.

doFinish

public boolean doFinish()
Description copied from interface: IRecorderPageProvider
Called if wizard Finish button is pressed. Note that initializing for recording is not intended to begin here, but in IRecorderClientHelper.preSetup()

Specified by:
doFinish in interface IRecorderPageProvider
Returns:
true if no errors

doCancel

public boolean doCancel()
Description copied from interface: IRecorderPageProvider
Called if wizard Cancel button is pressed.

Specified by:
doCancel in interface IRecorderPageProvider
Returns:
true if no errors

getRecorder

public Recorder getRecorder()
Specified by:
getRecorder in interface IRecorderProvider

getRecorderID

public java.lang.String getRecorderID()
Specified by:
getRecorderID in interface IRecorderProvider

setRecorder

public void setRecorder(java.lang.String id)
Specified by:
setRecorder in interface IRecorderProvider

setRecorder

public void setRecorder(Recorder recorder)
Description copied from interface: IRecorderProvider
Sets a Recorder object. Provided for compatibility with old recorder framework.

Specified by:
setRecorder in interface IRecorderProvider
Parameters:
recorder -

getWizard

public IGenericRecorderWizard getWizard()
Description copied from interface: IRecorderPageProvider
Returns the containing wizard. This should be the wizard that is a parameter in the constructor IRecorderPageProvider(IGenericRecorderWizard)

Specified by:
getWizard in interface IRecorderPageProvider
Returns:

TPTP 4.3.0 Testing Tools Project
Public API Specification