public static void performAndWaitForWindowChange(SWTBot bot,Runnable runnable){
  SWTBotShell shell=bot.activeShell();
  runnable.run();
  waitUntilShellIsNotActive(bot,shell);
}

public static void performAndWaitForWindowChange ( SWTBot bot , Runnable runnable ) { SWTBotShell shell = bot . activeShell ( ) ; runnable . run ( ) ; waitUntilShellIsNotActive ( bot , shell ) ; }
simple wrapper to block for actions that either open or close a window .
