How to detect if a runConfiguration is running

I'm building a plugin that takes some action after the some runConfigurations (the application) actually starts running.

I've looked into the source code, here is my understanding. I found that ProcessHandler has a list of listeners to fire events like startNotified; however, the ProcessHandler is created every time the RunProfileState.execute is called. The ProcessHandler is also stored in the RunContentDescriptor, which will soon be disposed.

Is there anyway to get the ProcessHandler or there are some other ways to detect the application is running?

Thanks!

1 comment
Comment actions Permalink

You can use ExecutionManager#getRunningProcesses().

--
Nikolay Chashnikov
JetBrains
http://www.jetbrains.com
"Develop with pleasure!"

0

Please sign in to leave a comment.