Search in sources :

Example 1 with IrbConsoleBuilder

use of org.jetbrains.plugins.ruby.console.config.IrbConsoleBuilder in project intellij-plugins by JetBrains.

the class SimulatorRakeConsoleModifier method createConsoleBuilder.

@NotNull
@Override
public TextConsoleBuilder createConsoleBuilder(@NotNull RakeRunConfiguration config) {
    if (onDevice(config)) {
        return TextConsoleBuilderFactory.getInstance().createBuilder(config.getProject());
    }
    final ConfigurationFactory factory = IrbRunConfigurationType.getInstance().getConfigurationFactories()[0];
    final Project project = config.getProject();
    return new IrbConsoleBuilder(project, (IrbRunConfiguration) factory.createTemplateConfiguration(project));
}
Also used : Project(com.intellij.openapi.project.Project) IrbConsoleBuilder(org.jetbrains.plugins.ruby.console.config.IrbConsoleBuilder) ConfigurationFactory(com.intellij.execution.configurations.ConfigurationFactory) NotNull(org.jetbrains.annotations.NotNull)

Aggregations

ConfigurationFactory (com.intellij.execution.configurations.ConfigurationFactory)1 Project (com.intellij.openapi.project.Project)1 NotNull (org.jetbrains.annotations.NotNull)1 IrbConsoleBuilder (org.jetbrains.plugins.ruby.console.config.IrbConsoleBuilder)1