I am using eclipse kepler and I want to be very quick doing my swing application.
So, I want to terminate current JVM process so that JFrame is closed and then I want to launch the same main method again.
And I want to do it in one key binding.
Currently I terminate JVM by pressing red icon on console and then Ctrl+f11 to launch the same main method again.
I want to terminate and relaunch my main method in one key binding. Please tell exactly how to configure it.
This does not work.
I assigned Alt+Shift+F11 to Restart option for Run/Debug.
I start main method by Ctrl+F11 as usual and then Alt+Shift+F11 does not work.
There is no restart option in eclipse console but only Terminate.
How to make my eclipse kepler to restart main method if there is no restart button in console but only Terminate ?
Unfortunately nothing works.
I tried Terminate,"Terminate and Relaunch" and Restart with Al+Shift+F12 and Al+Shift+F11 and Al+Shift+F10.
I set 'when' to 'In Windows' and Category is Run/Debug for all options.
Ah, the joys of configuring hot-keys in Eclipse! If you look at some of the existing key bindings, you will note that they are active only in certain contexts. In kepler, on the Key dialog, the context is the "When:" dropdown box. The trick to getting your key bindings to work is configuring the correct context, so try playing around with different settings for "When:". If none of those work, then you are sort of stuck, I know of no other way to do what you want.
(Yes I agree that Eclipse key binding is the most convoluted, dysfunctional pieces of @#$%^ I have ever dealt with.)