I was able to unstuck Eclipse (it was stuck on a large file diff) using the following steps.
- Preparations: I always start Eclipse with the eclipse-console: Add start parameter -console in eclipse.ini (first line)
- The console always remains responsive even when the eclipse UI freezes
- I found the following commands in the console: help threads
- List all threads: threads
- Stop a thread: threads stop THREAD-NAME
UPDATE: I found out, that usually the “main” thread causes the freezing. Thus the solution is:
Type this in the eclipse console:
threads stop main
This will trigger/throw an Exception in that thread, effectively interrupting what it was doing (being stuck).
This might cause other side-effects (depending on what action was interrupted and where), but i had no problems with it so far.