Пример #1
0
 /** Close the editor */
 @After
 public void tearDown() {
   fBot.closeAllEditors();
   SWTBotUtils.deleteProject(PROJECT_NAME, fBot);
   SWTBotUtils.closeViewById(ColorsView.ID, fBot);
 }
 /**
  * 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();
 }