I would need to add a button to every run window's tool bar (next to the Rerun, Pause, Stop, Close etc. buttons). Inside that button's action, I would also need to find out the command line parameters of the application running in that window. How can I do this?
The purpose is that when the user wants to monitor a misbehaving application (for example take a memory snapshot or start a profiler), he could click a button in the run window which would then open that application in VisualVM.