我想以编程方式重新运行(有一个命令也可以使用ctrl-f5)下面是idea中rhis按钮的图片
那么我怎样才能自己运行这个动作呢?
from the answer on intellij idea development forum
Hi Evgeniy,
You should use ExecutionManager.restartRunProfile() for that.
Default IJ implementation achieves that via RestartAction (the one from your screenshot).
Denis