putValue(Action.NAME, EditorExpressionsMessages.getString("BeanShellScriptingExpressionEditor.Validation"));
}
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"));
}