org.eclipse.swtbot.eclipse.finder.waits
Class WaitForView

java.lang.Object
  extended by org.eclipse.swtbot.swt.finder.waits.DefaultCondition
      extended by org.eclipse.swtbot.swt.finder.waits.WaitForObjectCondition<IViewReference>
          extended by org.eclipse.swtbot.eclipse.finder.waits.WaitForView
All Implemented Interfaces:
ICondition

public class WaitForView
extends WaitForObjectCondition<IViewReference>

Waits until a view part that matches the specified matcher appears.

Version:
$Id$
Author:
Ketan Padegaonkar <KetanPadegaonkar [at] gmail [dot] com>, Ralf Ebert www.ralfebert.de (bug 271630)

Field Summary
 
Fields inherited from class org.eclipse.swtbot.swt.finder.waits.WaitForObjectCondition
matcher
 
Fields inherited from class org.eclipse.swtbot.swt.finder.waits.DefaultCondition
bot
 
Method Summary
protected  List<IViewReference> findMatches()
           
 String getFailureMessage()
          Gets the failure message when a test fails (returns false).
 
Methods inherited from class org.eclipse.swtbot.swt.finder.waits.WaitForObjectCondition
get, getAllMatches, test
 
Methods inherited from class org.eclipse.swtbot.swt.finder.waits.DefaultCondition
init
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getFailureMessage

public String getFailureMessage()
Description copied from interface: ICondition
Gets the failure message when a test fails (returns false).

Returns:
the failure message to show in case the test fails.

findMatches

protected List<IViewReference> findMatches()
Specified by:
findMatches in class WaitForObjectCondition<IViewReference>
Returns:
the matches that subclasses that matched.