public void actionPerformed(ActionEvent e) {
boolean errorsFound = false;
for (RSyntaxTextArea scriptField : scriptFields) {
String script = scriptField.getText();
JavaScriptValidationError validate = javaScriptValidator.validate(script);
if (validate != null) {
showErrorMessage("The following script is invalid:\r\n" + script +
"\r\n\r\nError:<br/>" + validate.getErrorMessage());
errorsFound = true;
}
}
if (!errorsFound) {
OAuth2TokenExtractor extractor = getExtractor();