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