MethodExecutionManager executionManager = MethodExecutionManager.getInstance(project);
boolean continueExecution = executionManager.promptExecutionDialog(executionInput, true);
if (continueExecution) {
RunContentDescriptor reuseContent = environment.getContentToReuse();
DBProgramDebugProcessStarter debugProcessStarter = new DBProgramDebugProcessStarter(connectionHandler);
XDebugSession session = null;
try {
session = XDebuggerManager.getInstance(project).startSession(
DBProgramRunner.this,
environment,
reuseContent,
debugProcessStarter);
RunContentDescriptor descriptor = session.getRunContentDescriptor();
if (callback != null) callback.processStarted(descriptor);
if (true /*LocalHistoryConfiguration.getInstance().ADD_LABEL_ON_RUNNING*/) {
RunProfile runProfile = environment.getRunProfile();
LocalHistory.getInstance().putSystemLabel(project, executor.getId() + " " + runProfile.getName());
}
ExecutionManager.getInstance(project).getContentManager().showRunContent(executor, descriptor);
ProcessHandler processHandler = descriptor.getProcessHandler();
if (processHandler != null) processHandler.startNotify();
} catch (ExecutionException e) {
e.printStackTrace();
}
}