public void actionPerformed(AnActionEvent e) {
final StatementExecutionCursorResult executionResult = getExecutionResult(e);
if (executionResult != null) {
boolean continueExecution = executionResult.getExecutionProcessor().promptVariablesDialog();
if (continueExecution) {
new BackgroundTask(executionResult.getProject(), "Executing statement", false, true) {
protected void execute(@NotNull ProgressIndicator progressIndicator) {
initProgressIndicator(progressIndicator, true);
StatementExecutionCursorProcessor executionProcessor = executionResult.getExecutionProcessor();
executionProcessor.execute(progressIndicator);
}