}
private void loadNewestQueryResult(ISearchQuery[] queries) {
// new queries are added at first position
ISearchQuery query = queries[0];
ISearchResult searchResult = query.getSearchResult();
if (searchResult instanceof AbstractTextSearchResult) {
AbstractTextSearchResult res = (AbstractTextSearchResult) searchResult;
onElementsAdded(asList(res.getElements()));
}
}