code: 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));
    }
docs: Set a new querys in result panel.
  
  @param queue holds the salt graph
  @param q holds the ordinary query
  @param allMatches All matches.