package pers.zylo117.spotspotter.mainprogram;

import java.util.List;

import pers.zylo117.spotspotter.fileprocessor.FIndexReader;
import pers.zylo117.spotspotter.gui.viewer.CentralControl;

public class BreakPoint {
	public static void continuous(List<String> oldlist) {
		oldlist = FIndexReader.getFIndex(false);
		final List<String> newlist = FIndexReader.getFIndex(true);
		newlist.removeAll(oldlist);
		if (!newlist.isEmpty())
			oldlist = newlist;
		FIndexReader.indexProcess(CentralControl.monitorPath, oldlist);
	}
}

@@ -369,16 +369,45 @@
 (true);%0A
+%09%09if (!newlist.isEmpty()) %7B%0A%09
 %09%09newlis
@@ -428,16 +428,17 @@
 dlist);%0A
+%09
 %09%09if (!n
@@ -454,17 +454,20 @@
 Empty())
-%0A
+ %7B%0A%09
 %09%09%09oldli
@@ -480,16 +480,18 @@
 ewlist;%0A
+%09%09
 %09%09FIndex
@@ -548,13 +548,65 @@
 dlist);%0A
+%09%09%09%7D else%0A%09%09%09%09System.out.println(%22Empty List%22);%0A%09%09%7D%0A
 %09%7D%0A%7D%0A

Fix endless loopIndex