Package com.dci.intellij.dbn.debugger.execution

Examples of com.dci.intellij.dbn.debugger.execution.DBProgramRunConfigurationType


        ConfigurationType[] configurationTypes = Extensions.getExtensions(ConfigurationType.CONFIGURATION_TYPE_EP);
        return ContainerUtil.findInstance(configurationTypes, DBProgramRunConfigurationType.class);
    }

    public static String createConfigurationName(DBMethod method) {
        DBProgramRunConfigurationType configurationType = getConfigurationType();
        RunManagerEx runManager = (RunManagerEx) RunManagerEx.getInstance(method.getProject());
        RunnerAndConfigurationSettings[] configurationSettings = runManager.getConfigurationSettings(configurationType);

        String name = method.getName();
        while (nameExists(configurationSettings, name)) {
View Full Code Here


        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);
View Full Code Here

TOP

Related Classes of com.dci.intellij.dbn.debugger.execution.DBProgramRunConfigurationType

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.