Search in sources :

Example 6 with CfmlRunConfiguration

use of com.intellij.coldFusion.UI.runner.CfmlRunConfiguration in project intellij-plugins by JetBrains.

the class CfmlRunConfigurationTest method generateNonDefaultRunConfiguration.

public void generateNonDefaultRunConfiguration() throws IOException, ConfigurationException {
    final CfmlRunConfiguration defaultCfmlRunConfiguration = getDefaultCfmlRunConfiguration();
    final CfmlRunConfiguration clonedConfiguration = (CfmlRunConfiguration) defaultCfmlRunConfiguration.clone();
    clonedConfiguration.getRunnerParameters().setUrl("http://4.4.4.4/src/index.cfm");
    final RunnerAndConfigurationSettings runnerAndConfigurationSettings = RunManager.getInstance(getProject()).createConfiguration(clonedConfiguration, CfmlRunConfigurationType.getInstance().getConfigurationFactories()[0]);
    RunManager.getInstance(getProject()).addConfiguration(runnerAndConfigurationSettings, false);
}
Also used : CfmlRunConfiguration(com.intellij.coldFusion.UI.runner.CfmlRunConfiguration) RunnerAndConfigurationSettings(com.intellij.execution.RunnerAndConfigurationSettings)

Aggregations

CfmlRunConfiguration (com.intellij.coldFusion.UI.runner.CfmlRunConfiguration)6 Editor (com.intellij.openapi.editor.Editor)3 RunnerAndConfigurationSettings (com.intellij.execution.RunnerAndConfigurationSettings)2 ConfigurationContext (com.intellij.execution.actions.ConfigurationContext)2 RunManagerEx (com.intellij.execution.RunManagerEx)1 ConfigurationFromContext (com.intellij.execution.actions.ConfigurationFromContext)1 RunConfigurationProducer (com.intellij.execution.actions.RunConfigurationProducer)1 RunConfiguration (com.intellij.execution.configurations.RunConfiguration)1 Project (com.intellij.openapi.project.Project)1 ArrayList (java.util.ArrayList)1