public void actionPerformed(final ActionEvent e) {
   final Parser parser = new Parser(new StringReader(getText()));
   parser.setRetainComments(true);
   setStatus(" ");
   try {
     //noinspection StatementWithEmptyBody
     while (!parser.Line()) {;
     }
     setStatus(
         EditorExpressionsMessages.getString(
             "BeanShellScriptingExpressionEditor.ValidationComplete"));
   } catch (ParseException e1) {
     setStatus(e1.getMessage());
   }
 }
 private ValidateAction() {
   putValue(
       Action.NAME,
       EditorExpressionsMessages.getString("BeanShellScriptingExpressionEditor.Validation"));
 }