Example #1
0
 /**
  * Display the response as text or as rendered HTML. Change the text on the button appropriate to
  * the current display.
  *
  * @param e the ActionEvent being processed
  */
 @Override
 public void actionPerformed(ActionEvent e) {
   String command = e.getActionCommand();
   if ((sampleResult != null) && (XPATH_TESTER_COMMAND.equals(command))) {
     String response = xmlDataField.getText();
     XPathExtractor extractor = new XPathExtractor();
     xmlConfPanel.modifyTestElement(extractor);
     extractor.setFragment(getFragment.isSelected());
     executeAndShowXPathTester(response, extractor);
   }
 }