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.
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.
Eclipse -> Help -> Install New Software...
Update site URL:
This plugin is released under Apache Open Source license v2.0.
Source code can be found here.