Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » is there any way to bind a key with two actions
is there any way to bind a key with two actions [message #509600] Sat, 23 January 2010 13:57 Go to next message
No real name is currently offline No real nameFriend
Messages: 2
Registered: January 2010
Junior Member
hi everyone!

i bind "Ctrl - s" to save file
also bind "Ctrl -s" to remove trailing whitespace
then "Ctrl -s" remove the whitespace but do not save the file.

any help is appreciated!
Re: is there any way to bind a key with two actions [message #510628 is a reply to message #509600] Thu, 28 January 2010 05:27 Go to previous messageGo to next message
Madhu Samuel is currently offline Madhu SamuelFriend
Messages: 199
Registered: July 2009
Senior Member
From my knowledge, you cannot use the same key binding to multiple actions. Only one of the two actions will work on invocation of the key sequence.

You can create a new action which removes the whitespaces and invokes the 'save'.


Re: is there any way to bind a key with two actions [message #511155 is a reply to message #510628] Sat, 30 January 2010 15:09 Go to previous messageGo to next message
No real name is currently offline No real nameFriend
Messages: 2
Registered: January 2010
Junior Member
could u tell me how to create a new action?
Re: is there any way to bind a key with two actions [message #511168 is a reply to message #511155] Sat, 30 January 2010 17:16 Go to previous message
Madhu Samuel is currently offline Madhu SamuelFriend
Messages: 199
Registered: July 2009
Senior Member
Check the command's tutorial at Eclipse Tips - http://eclipse-tips.com/index.php/tutorials/1-actions-vs-com mands

Previous Topic:GMF mapping trouble
Next Topic:Forum username and password?
Goto Forum:
  


Current Time: Sun May 05 04:14:17 GMT 2024

Powered by FUDForum. Page generated in 0.08335 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top