Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Eclipse keyboard shortcuts load/save
icon9.gif  Eclipse keyboard shortcuts load/save [message #912839] Fri, 14 September 2012 09:23
Eclipse UserFriend

I am passing through an Eclipse keyboard shortcut customization fiasco.
I was using Indigo for c++ and Java, and now want to use Juno.
I want to keep my shortcuts.

I tried the import/export facility but many shortcuts don't work. They seem to be bound to the respective commands in Preferences > Keys, but they don't work. Also, there are no visible conflicts. For example, I have Shift+Ctrl+S bound to SVN Sychronize, but when I press it, I get a small window in the bottom right corner showing that this shortcut coflicts with 'Save All'. However, when filtering for Shift+Ctrl+S in Keys, I see no conflict for this key.

Started to dig inside workspace configuration files, specifically <workspace>/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.ui.workbench.prefs. There, I see that I have 2 expected key bindings:

<keyBinding commandId\="" contextId\="org.eclipse.ui.textEditorScope" keyConfigurationId\="org.eclipse.ui.defaultAcceleratorConfiguration" keySequence\="CTRL+SHIFT+S"/>
<keyBinding commandId\="" contextId\="org.eclipse.ui.contexts.window" keyConfigurationId\="org.eclipse.ui.defaultAcceleratorConfiguration" keySequence\="CTRL+SHIFT+S"/>

... one being for Synchronizing a project when it's selected in Project Explorer, and the other for searching a word using editor scope. They don't conflict with each other and worked like a charm in previous version of Eclipse, Indigo.

I notice 2 other bindings containing SHIFT+CTRL+S:

<keyBinding contextId\="org.eclipse.ui.contexts.window" keyConfigurationId\="org.eclipse.ui.defaultAcceleratorConfiguration" keySequence\="CTRL+SHIFT+S"/>
<keyBinding contextId\="org.eclipse.ui.contexts.window" keyConfigurationId\="org.eclipse.ui.defaultAcceleratorConfiguration" keySequence\="CTRL+SHIFT+S"/>

After removing these from the file, and restarting Eclipse, magic happens: the Preferences > Keys dialog shows 'SVN Synchronize' conflict with 'Save All'. Now I can un-bind the 'Save all' command and voila - it works.

Digging some more, I find that this triggered a modification of a different config file, <workspace>/.metadata/.plugins/org.eclipse.e4.workbench/workbench.xmi, specifically it added the "deleted" bit for the Save All binding:

<bindings xmi:id="_u5UL8_vnEeG8LJ5AnbQ0RQ" keySequence="CTRL+SHIFT+S" command="_u4d3hfvnEeG8LJ5AnbQ0RQ">

... the command _u4d3hfvnEeG8LJ5AnbQ0RQ being, well, 'Save All'.

My conclusion is that migrating shortcuts is difficult, if possible at all. Impossible with import/export utility and a nightmare using config files - because of their intricate format and the fact they interact with each other in magical ways.

Question is obvious, did any of you pull this off?
Previous Topic:Add menu items on pop-up menu
Next Topic:Broken links on site
Goto Forum:

Current Time: Sat Sep 26 21:42:29 GMT 2020

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

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

Back to the top