code: public void setInfo(String text)
    {
      if (text != null && text.length() > 0)
      {
        String prefix = "Result for: <span class=\"" + Helper.CORPUS_FONT_FORCE + "\">";
        lblInfo.setDescription(prefix + text.replaceAll("\n", " ") + "</span>");
        lblInfo.setValue(text.length() < 50 ? prefix + StringEscapeUtils.
          escapeHtml4(text.substring(0, text.length())) : prefix + StringEscapeUtils.
          escapeHtml4(text.substring(0, 50)) + " ... </span>");
      }
    }
docs: Cuts off long queries. Actually they are restricted to 50 characters. The
  full query is available with descriptions (tooltip in gui)
  
  @param text the query to display in the result view panel