public void setQueryResultQueue ( BlockingQueue < SaltProject > queue , PagedResultQuery q , ArrayList < Match > allMatches ) { this . projectQueue = queue ; this . currentQuery = q ; this . numberOfResults = allMatches . size ( ) ; this . allMatches = allMatches ; paging . setPageSize ( q . getLimit ( ) , false ) ; paging . setInfo ( q . getQuery ( ) ) ; resultLayout . removeAllComponents ( ) ; resultPanelList . clear ( ) ; // get the first query result SaltProject first = queue . poll ( ) ; Preconditions . checkState ( first != null , "There must be already an element in the queue" ) ; addQueryResult ( q , Arrays . asList ( first ) ) ; }
Set a new querys in result panel .