@Override public void performRequest(String request){
  if (request.compareTo("Show results") == 0) {
    showResults();
  }
 else   if (request.compareTo("Clear results") == 0) {
    m_outText.setText("");
    m_history.clearResults();
  }
 else {
    throw new IllegalArgumentException(request + " not supported (TextViewer)");
  }
}

@ Override public void performRequest ( String request ) { if ( request . compareTo ( "Show results" ) == 0 ) { showResults ( ) ; } else if ( request . compareTo ( "Clear results" ) == 0 ) { m_outText . setText ( "" ) ; m_history . clearResults ( ) ; } else { throw new IllegalArgumentException ( request + " not supported (TextViewer)" ) ; } }
perform the named request
