org.eclipse.emf.facet.util.tests.swtbot.internal.exported
Class SWTBotUtils

java.lang.Object
  extended by org.eclipse.emf.facet.util.tests.swtbot.internal.exported.SWTBotUtils

public final class SWTBotUtils
extends java.lang.Object


Nested Class Summary
static class SWTBotUtils.PrefixTextMatcher<T>
           
 
Method Summary
static void captureScreenShot(java.lang.String imageName)
           
static void closeWelcomeAndEditorsAndShells()
          Clears the workbench UI : close the welcome page if present, all editors, and all shells.
static void deleteAllProjects()
           
static void executeCommand(java.lang.String commandID)
           
static SWTBotToolbarButton getToolbarButton(java.lang.String tooltipPrefix, int index, SWTWorkbenchBot pBot)
           
static void startDebugDumpingIfEnabled()
           
static void waitUntilAssertListSize(int expected, java.util.List<?> list)
           
static void waitUntilNotEmpty(SWTBotTree tree, int timeout)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getToolbarButton

public static SWTBotToolbarButton getToolbarButton(java.lang.String tooltipPrefix,
                                                   int index,
                                                   SWTWorkbenchBot pBot)

captureScreenShot

public static void captureScreenShot(java.lang.String imageName)

waitUntilNotEmpty

public static void waitUntilNotEmpty(SWTBotTree tree,
                                     int timeout)

waitUntilAssertListSize

public static void waitUntilAssertListSize(int expected,
                                           java.util.List<?> list)

executeCommand

public static void executeCommand(java.lang.String commandID)

closeWelcomeAndEditorsAndShells

public static void closeWelcomeAndEditorsAndShells()
Clears the workbench UI : close the welcome page if present, all editors, and all shells. This method is meant to be called between tests, in order to ensure that if one test fails and leaves a dialog open, subsequent tests can still pass.


deleteAllProjects

public static void deleteAllProjects()
                              throws CoreException
Throws:
CoreException

startDebugDumpingIfEnabled

public static void startDebugDumpingIfEnabled()