}
CodeConjurer.getInstance().setSearchFinished(search);
}
});
// The rule for one search per editor
ParallelSearchPrevention concurrencyRule = null;
if (searchJobs.containsKey(editor)) {
concurrencyRule = searchJobs.get(editor);
} else {
concurrencyRule = new ParallelSearchPrevention();
searchJobs.put(editor, concurrencyRule);
}
search.setRule(concurrencyRule);
search.setPriority(Job.LONG);
search.schedule(1000);