@Override
	protected void doLoad(Accumulator<ProgramLocation> accumulator, TaskMonitor monitor)
			throws CancelledException {
		Searcher searcher = getSearcher(tool, monitor);
		monitor.checkCancelled();
		TextSearchResult result = searcher.search();
		while (result != null && accumulator.size() < searchLimit) {
			accumulator.add(result.programLocation());
			monitor.checkCancelled();
			result = searcher.search();
		}
	}
Table model for showing the results of a "Search All"
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/searchtext/AbstractSearchTableModel.java