How do you make a plugin setting change require a restart?

I have a setting that is only used on start up so the IDEA would need to restart for it to take effect.

How do I provide this functionality similar to how the IDEA does it when you make changes that require a restart?

I searched but could not find any information on how to force IDEA to restart or how to let it know that a setting change requres a restart.

3 comments
Comment actions Permalink

ApplicationManager.getApplication().restart()

0
Comment actions Permalink

ApplicationManager.getApplication().restart() does not work, I used the code below:

final ApplicationEx app = (ApplicationEx)ApplicationManager.getApplication();
app.restart(true);
0

Please sign in to leave a comment.