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