Example #1
0
 @AfterMethod
 protected void deleteLog() {
   try {
     if (log.isOpen()) log.close();
   } catch (Exception ignore) {
   } finally {
     assertFalse(log.isOpen());
     assertTrue(log.isClosed());
     log.delete();
   }
 }
 /*
  * (non-Javadoc)
  *
  * @see
  * org.xmind.cathy.internal.jobs.OpenFilesJob#filterFilesToOpen(java.util
  * .List, org.eclipse.core.runtime.IProgressMonitor)
  */
 @Override
 protected void filterFilesToOpen(List<String> filesToOpen) {
   Log opening = Log.get(Log.OPENING);
   if (opening.exists()) {
     String[] contents = opening.getContents();
     for (String line : contents) {
       if (line.startsWith("xmind:") || new File(line).exists()) { // $NON-NLS-1$
         filesToOpen.add(line);
       }
     }
     opening.delete();
   }
 }