use of org.jetbrains.idea.devkit.run.PluginConfigurationType in project intellij-community by JetBrains.
the class PluginModuleBuilder method commitModule.
@Nullable
@Override
public Module commitModule(@NotNull Project project, @Nullable ModifiableModuleModel model) {
Module module = super.commitModule(project, model);
if (module != null) {
RunManager runManager = RunManager.getInstance(project);
RunnerAndConfigurationSettings configuration = runManager.createRunConfiguration(DevKitBundle.message("run.configuration.title"), new PluginConfigurationType().getConfigurationFactories()[0]);
runManager.addConfiguration(configuration, false);
runManager.setSelectedConfiguration(configuration);
}
return module;
}
Aggregations