문제

I want to programmatically rerun(There is a command for this also you can use ctrl-f5) Below is a picture of rhis button in idea

Rerun button

So how I can run this action by myself?

도움이 되었습니까?

해결책

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top