org.eclipse.swtbot.swt.finder.waits
Class DefaultCondition

java.lang.Object
  extended by org.eclipse.swtbot.swt.finder.waits.DefaultCondition
All Implemented Interfaces:
ICondition
Direct Known Subclasses:
WaitForObjectCondition

public abstract class DefaultCondition
extends Object
implements ICondition

This is an abstract implementation of the condition interface to simplify the implementing classes.

Version:
$Id$
Author:
Ketan Padegaonkar <KetanPadegaonkar [at] gmail [dot] com>

Field Summary
protected  SWTBot bot
          the SWTBot instance that this instance may use to evaluate the test.
 
Constructor Summary
DefaultCondition()
           
 
Method Summary
 void init(SWTBot bot)
          Initializes the condition with the given SWTBot.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.eclipse.swtbot.swt.finder.waits.ICondition
getFailureMessage, test
 

Field Detail

bot

protected SWTBot bot
the SWTBot instance that this instance may use to evaluate the test.

Constructor Detail

DefaultCondition

public DefaultCondition()
Method Detail

init

public void init(SWTBot bot)
Initializes the condition with the given SWTBot.

Specified by:
init in interface ICondition
Parameters:
bot - The bot to use. This should never be null.
See Also:
ICondition.init(org.eclipse.swtbot.swt.finder.SWTBot)