public SearchAction(SearchInformation info,String messageKey){
  this.info=info;
  putValue(Action.NAME,MessageFormat.format(I18n.tr(messageKey),new Object[]{info.getTitle()}));
  if (SearchMediator.validateInfo(info) != SearchMediator.QUERY_VALID) {
    throw new IllegalArgumentException("invalid search info: " + info);
  }
}

public SearchAction ( SearchInformation info , String messageKey ) { this . info = info ; putValue ( Action . NAME , MessageFormat . format ( I18n . tr ( messageKey ) , new Object [ ] { info . getTitle ( ) } ) ) ; if ( SearchMediator . validateInfo ( info ) != SearchMediator . QUERY_VALID ) { throw new IllegalArgumentException ( "invalid search info: " + info ) ; } }
constructs an action that triggers a search for the given search information .
