private String titleOf(SearchResultMediator rp){
  int total=rp.totalResults();
  String title=rp.getTitle();
  if (title.length() > 40) {
    title=title.substring(0,39) + "...";
  }
  return title + " (" + total+ " "+ I18n.tr("results")+ ")";
}

private String titleOf ( SearchResultMediator rp ) { int total = rp . totalResults ( ) ; String title = rp . getTitle ( ) ; if ( title . length ( ) > 40 ) { title = title . substring ( 0 , 39 ) + "..." ; } return title + " (" + total + " " + I18n . tr ( "results" ) + ")" ; }
returns the title of the specified resultpanel .
