try {
initProgressIndicator(progressIndicator, true, "Executing " + method.getQualifiedNameWithType());
executionInput.initExecutionResult(false);
executionProcessor.execute(executionInput);
if (!executionInput.isExecutionCancelled()) {
new SimpleLaterInvocator() {
public void execute() {
ExecutionManager executionManager = ExecutionManager.getInstance(project);
executionManager.showExecutionConsole(executionInput.getExecutionResult());
executionInput.setExecuting(false);
}
}.start();
}
executionInput.setExecutionCancelled(false);
} catch (final SQLException e) {
executionInput.setExecuting(false);
if (!executionInput.isExecutionCancelled()) {
new SimpleLaterInvocator() {
public void execute() {
MessageUtil.showErrorDialog("Could not execute " + method.getTypeName() + ".", e);
if (promptExecutionDialog(executionInput, false)) {
MethodExecutionManager.this.execute(executionInput);
}