Eclipse keybinding for opening the current class in the package explorer
I have recently moved from Eclipse 3.4 to 3.5. In 3.4 I had a key binding that allowed me to open the currently open class in the package explorer. So for exam开发者_Python百科ple, I would hit alt-F1 and the class in the editor would be shown in the package explorer pane. I know I can click the "Link with Editor" button (looks like a left and right arrow on top of one another) in the package explorer pane but that would cause the package explorer to continuously update as I switch between classes in the editor. I want the ability to open the chosen class in the package explorer when I decide to using a particular key binding.
In 3.4, I bound the alt-F1 key binding to the command called "Show in Package Explorer". 3.5 does not seem to have this command.
Edit: This issue seems to be caused by the importing of key bindings from 3.4 when a binding maps to a command that no longer exists in Eclipse 3.4.
There is a command "Show In (Show In Target Id: Package Explorer)"
screenshot http://img693.imageshack.us/img693/9939/screen1x.png
To get around the issue of importing 3.4 key bindings to 3.5 where there was a binding that no longer existed in 3.5, I had to re-export the 3.4 key preferences and manually open up the .epf file and remove the ALT+F1 mapping and then re-import into 3.5 which then allowed me to map ALT+F1 to the new 3.5 command.
精彩评论