}
return false;
}
public void createDebugConfiguration(DBMethod method) {
RunManagerEx runManager = (RunManagerEx) RunManagerEx.getInstance(method.getProject());
DBProgramRunConfigurationType configurationType = getConfigurationType();
RunnerAndConfigurationSettings runConfigurationSetting = null;
RunnerAndConfigurationSettings[] configurationSettings = runManager.getConfigurationSettings(configurationType);
for (RunnerAndConfigurationSettings configurationSetting : configurationSettings) {
DBProgramRunConfiguration availableRunConfiguration = (DBProgramRunConfiguration) configurationSetting.getConfiguration();
if (method.equals(availableRunConfiguration.getMethod())) {
runConfigurationSetting = configurationSetting;
break;
}
}
// check whether a configuration already exists for the given method
if (runConfigurationSetting == null) {
DBProgramRunConfigurationFactory configurationFactory = configurationType.getConfigurationFactory();
DBProgramRunConfiguration runConfiguration = configurationFactory.createConfiguration(method);
runConfigurationSetting = runManager.createConfiguration(runConfiguration, configurationFactory);
runManager.addConfiguration(runConfigurationSetting, false);
runManager.setTemporaryConfiguration(runConfigurationSetting);
}
runManager.setSelectedConfiguration(runConfigurationSetting);
ProgramRunner programRunner = RunnerRegistry.getInstance().findRunnerById(DBProgramRunner.RUNNER_ID);
try {
ExecutionEnvironment executionEnvironment = new ExecutionEnvironment(DefaultDebugExecutor.getDebugExecutorInstance(), programRunner, runConfigurationSetting, getProject());
programRunner.execute(executionEnvironment);
} catch (ExecutionException e) {