|
|
|
@ -45,8 +45,8 @@ public class TableDataTreeSearcher implements TreeSearcher {
|
|
|
|
|
return matchSets.isEmpty(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public int getNotCalculatedSetsSize() { |
|
|
|
|
return notCalculatedSets.size(); |
|
|
|
|
public int getAllWrappersSize() { |
|
|
|
|
return allWrappers.size(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public synchronized void addToCalculatedSets(List<String> tableDataNames) { |
|
|
|
@ -55,7 +55,6 @@ public class TableDataTreeSearcher implements TreeSearcher {
|
|
|
|
|
if (tableDataWrapper == null) { |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
notCalculatedSets.remove(tableDataName); |
|
|
|
|
calculatedSets.add(tableDataName); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
@ -111,6 +110,7 @@ public class TableDataTreeSearcher implements TreeSearcher {
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public void startSearch(String searchText) { |
|
|
|
|
reset(); |
|
|
|
|
for (String notCalculatedSet : notCalculatedSets) { |
|
|
|
|
TableDataWrapper tableDataWrapper = allWrappers.get(notCalculatedSet); |
|
|
|
|
if (TableDataTreeSearchManager.getInstance().getTreeSearchStatus() == TreeSearchStatus.SEARCHING) { |
|
|
|
@ -121,12 +121,12 @@ public class TableDataTreeSearcher implements TreeSearcher {
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public void stopSearch() { |
|
|
|
|
reset(); |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public void completeSearch() { |
|
|
|
|
reset(); |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private void reset() { |
|
|
|
|