Shortcut key to restart server in Eclipse - eclipse

So Ctrl/Cmd + F11 starts the server, but is there a key to restart the server? I'm developing using app engine and GWT if that makes any difference (I suspect not).

The approach of Nirmal Patel can be extended to restart the server while using only the keyboard.
Therefore define a shortcut to switch from the editor (or wherever you want) to the Servers View. Go to Window -> Preferences -> General -> Keys. Select 'Show Views (Servers)', choose for the 'When' attribute: 'In Windows' and use your prefered shortcut in the binding input field, for example Ctrl + Alt + R.
Hitting this shortcut twice now will restart the server. (First one will bring you to the Servers View, second is the default to restart the server while in Servers View.) With a macro program like AutoHotKey you can bring it down to one simple shortcut.
Example for AutoHotKey:
Create a script like discribed in the Tutorial containing just
^r::
Send ^!r^!r
Run the script (Rightclick on it -> Run Script) and if you defined the shortcut like mentioned above, you can now restart the server with a simple Ctrl + R. Pretty convenient. :)

While focused on the Servers view, you can press Ctrl + Alt + R to restart the server.

Not that I know of.
The only feature related to that shortcut dates from WTP2.0 and its interaction with Debug session:
Debug Last Launched
Have you ever used Run on Server, hit a bug in your application, and then hit F11 to test again, only to find out that it tries to start the server again instead?
This long standing and annoying bug has been fixed, so you can now use F11 (or Ctrl-F11 for debug) to rerun just the last html page or EJB.

For MAC users
Start the server - OPTION+COMMAND+R
Start the server in DEBUG mode - OPTION+COMMAND+D
Stop the server - OPTION+COMMAND+S

Related

Using "xbindkeys" and "xdotool" to set fullscreen on firefox 60.1.0esr

My intention is to know if there is a way to set firefox-60.1.0 in fullscreen mode once it is opened to act as a kiosk, but using the Xbindkeys and Xdotool programs.
Note: I've already performed some tests, that's why I changed a little bit the scope of the original question.
XBindKeys uses a configuration file .xbindkeysrc for binding keys.
For example, I edited this file to set firefox in fullscreen mode by pressing shift + f keys combination. Then, this action activates the xdotool command to send the F11 key to the browser only if firefox is already opened:
# set firefox to fullscreen if opened
"xdotool search --classname navigator key F11"
shift + f
The problem is that it only works on firefox 52.8.0esr but my target is firefox 60.1.0esr and later versions.
So now, I´m wondering 2 things:
Will "xbindkeys" and "xdotool" programs be compatible with firefox-60.1.0 and later versions?.
Are there any Xclients replacement that are compatible with firefox-60.1.0 and later versions?.
Some other Xclients I have found are (but not tested so far):
xvkbd
xkb
xmodmap
..also other alternatives to xdotool such as autokey and more from these posts:
https://alternativeto.net/software/xdotool/?platform=linux
Note: I´m using centos for testing this.
Thanks for your help!
BR
So if I understand you, any keys are allowed before Firefox starts AND then only keys you want are allowed?
Use xbindkeys to start a shell script that:
remaps with xmodmap any keys you wish to surpress into something harmless
starts firefox as a background process
uses xdotool to send an F11 key to the firefox window
then waits for firefox to complete
and finally
uses xmodmap to restore the original keybindings.

emacs key commands different in Windows and Linux?

I'm trying to finally bite the bullet and learn emacs. Mainly so that I am comfortable editing files on a server through ssh. So I installed emacs on Windows in order practice. Right away I noticed this difference: when I press ctrl - rightarrow on windows, the cursor jumps to the next work. When I do this in emacs on the server, the cursor moves to the next character only. I believe the latter is the "normal" behaviour (M - rightarrow will jump to the next word in both versions). How can I get my windows emacs to behave exactly like the one on the server? I don't want to learn habits on windows that won't carry over to the server.
You mention server, I assume you are connecting to it over SSH? It is very likely that something over the route steals modifiers off your C-arrow movements.
If this is the case, try to edit your files locally. Here's how: How can I use Emacs tramp to ssh to a remote host and edit a file as another user on an ad-hoc basis?

Shortcut for selecting run configuration in Eclipse IDE

I have an Eclipse workspace with a bunch of projects. I manually created some run configurations for each project (it's necessary to pass some arguments to VM, so I can't just run it directly, e.g. using shortcut ALT+SHIFT+X, T in the specific file).
Most of the time, I just use one run configuration (whereas for the first time I manually launch it using Run -> Run configurations -> (name) -> Run). Since I configured Eclipse to always run the last run configuration (on F11 or CTRL+F11), it's usually enough.
However, sometimes I need to switch to a different run configuration and then back to previous one and then to a different one etc. Is there a quick way to do it? I'd like to see a shortcut, which would display pop-up window with all existing run configurations. By typing first few letters, I'd find an appropriate one and would be able to immediately run it by pressing ENTER. I mean something similar to what CTRL+SHIFT+T or CTRL+SHIFT+R looks like.
I'm afraid there's not something like that. Nonetheless, any advice on how to get more effective would be greatly appreciated, because I'm bored of switching run configurations via menu (as I described above). I can press ALT+R, N and then select a run configuration using arrow keys, but it's not really that comfortable.
You already gave most of the answer yourself. Start by pressing ALT+R, N and then simply start typing the name of the configuration you want. The cursor should be positioned in the filter field and thus incrementally reduce the list of launch configurations as you type. When you've narrowed it down to 1, complete the selection by ALT+R.
BTW: thanks for the reminder, I, too, was using the mouse way too much in this particular use case. I will stop doing so, now that I gave the answer :)
Since Eclipse 4.12 (June 2019, 4 years later) you can also launch any of the Run or Debug configurations available in your workspace from... the Quick Access menu (Ctrl+3 shortcut)
Note: For performance reasons, the extra Quick Access entries are only visible if the org.eclipse.debug.ui bundle was already activated by some previous action in the workbench such as editing a launch configuration, or expanding the Run As... menus.

How do I map an external tool to a hotkey in Eclipse?

In Eclipse, I have external tools defined in Eclipse that I execute regularly. I'd like to save me some time by wiring them to a hotkey. I've done some googling on this and most of the information I've found is from last decade. I'm also fully aware that I can wire a hot key to "Last executed external tool", but that last tool isn't always the same.
How do I wire an external tool defined in Eclipse to a hotkey?
I don't know if you can bind a key to this, but the PathTools eclipse plugin lets you register a set of custom command lines, which you can select from a menu. If you can bind a key to selecting it from a menu, then that works.
Maybe this could be helpful to you, http://www.eclipse.org/forums/index.php/t/88391/
Here you can possible get som help. Coute :" There currently is a command for running the last external tool
See Window>Preferences>Workbench>Keys
It is in the Run/Debug category; Run Last Launched External Tool
By default it is not mapped to a shortcut.
I have it mapped to F9"
I eventually landed on using AutoHotKey to define additional hotkeys to run external tools.
The way I do it:
In the common settings of the external tool, set the combo box of "Display in Favorites Menu - External Tools"
(optional): Organize favorites for a convenient number.
Whenever I want to invoke the tool:
press ALT (for menu bar),
then press r (for run),
then press e (for external tools),
then press the number of the favorite.
This can be done really fast. It's the closest thing to a hotkey. After 3 days you won't notice the difference...

How can I assign a Keyboard Shortcut to "Run SQL" in RAD7 / Eclipse

When developing in Rational Application Developer 7 I regularly run SQL queries to confirm DB state and get info for test data. I have a .SQL file with various SQL snippets in it which I use and can highlight the relevant lines I want to run. However I then have to right click with the mouse and select "Run SQL" from the menu.
There is no keyboard shortcut assigned to this command and my attempts to set one up via
Window > Preferences > General > Keys
have been unsuccessful. "Run SQL" appears under "uncategorized" rather than "Run" but attempts to assign a keyboard shortcut to it have been unsuccessful.
Has anyone else come across this issue? I can't believe I'm the only one who finds this annoying when there are so many other shortcuts set up to speed things up...
From the bug 238890 (2008), this feature has never been intended to become a full run configuration.
The user should use 'Execute Selected' context menu. The 'Run' is designed for
running stored procedures.