Run configuration: "run" and "debug" buttons are disabled
Hi guys,
I am adding Run configuration for my plugin.
So far I've done these steps:
- implemented ConfigurationType
- created MyConfigurationEditor which extends SettingsEditor
- created MyRunConfiguration that has implemented getConfigurationEditor() and getState(). Other methods return null.
- added MyConfigurationType to plugin.xml
Now when I run my plugin I am able to create new configuration but I cannot run it because both "run" and "debug" buttons are disabled.
What should be my next step to enable these buttons?
请先登录再写评论。
You need to create com.intellij.execution.runners.ProgramRunner implementation that knows how to launch your run configuration.
Ok, I extended DefaultProgramRunner and added it to plugin.xml and now it works.
Thank you!