In Eclipse the built-in Server Restart shortcut works only in Servers view. However, in most cases the active view is the Editor view. It means that in most cases it is impossible to restart a Server with one keyboard shortcut.
What?
server-restart-shortcut is a simple plugin that adds a 'Restart Last Server' command to Eclipse on which a keyboard shortcut can be assigned. This command works in any view.
The default shortcut is Ctrl-Alt-R (or Command-Option-R on a Mac).
The command will restart the last started server, or if there aren't any, the first available server.
Installation
Eclipse -> Help -> Install New Software...
Update site URL:
http://rustyx.org/server-restart-shortcut/site.xml
License
This plugin is released under Apache Open Source license v2.0.
Source code can be found here.
Author: RustyX