/** * Close all open editors * * @param bot - SWTBot * @param save - True if you want to save editor contents before closing */ public static void closeAll(SWTWorkbenchBot bot, boolean save) { if (save) { bot.saveAllEditors(); } bot.closeAllEditors(); }