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));
}
Aggregations