Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » RCP application migrated to e4 based on compatibility layer key binding is ignored
RCP application migrated to e4 based on compatibility layer key binding is ignored [message #1772943] Tue, 19 September 2017 08:57 Go to next message
Guilhaume Pinard-Legry is currently offline Guilhaume Pinard-LegryFriend
Messages: 2
Registered: September 2017
Junior Member
Hello,

I am migrating an old RCP application (initially based on Eclipse 3.4) to Neon (4.6.3)
Iam using the compatibility layer.
The key bindings of my actions are not working anymore
I have a custom scheme.
Here is the plugin.xml:
<extension
point="org.eclipse.ui.bindings">
<scheme
id="foo.KeyConfiguration"
name="FooKeyConfiguration"
parentId="org.eclipse.ui.defaultAcceleratorConfiguration"/>
<key
commandId="foo.action.file.OpenDocumentAction"
contextId="org.eclipse.ui.contexts.window"
schemeId="foo.KeyConfiguration"
sequence="M1+O">
</key>
...
when changing the schemeId of the binding to "org.eclipse.ui.defaultAcceleratorConfiguration", it works again, except for the conflicts with default bindings.

Am I missing something ?

Thanks in advance !

Cheers

Guilhaume
Re: RCP application migrated to e4 based on compatibility layer key binding is ignored [message #1772968 is a reply to message #1772943] Tue, 19 September 2017 15:10 Go to previous messageGo to next message
Brian de Alwis is currently offline Brian de AlwisFriend
Messages: 772
Registered: January 2012
Senior Member

Stupid question, but you're sure you've actually enabled the scheme, right? If you're using the Keys preference page, then put a breakpoint in org.eclipse.ui.internal.keys.KeysPreferencePage.selectedComboScheme() and start tracing through.

Internally, keybinding schemes are set BindingManager#setScheme().


Eclipse Platform committer. Ask me about Eclipse support, training, and consulting.
Re: RCP application migrated to e4 based on compatibility layer key binding is ignored [message #1773078 is a reply to message #1772968] Thu, 21 September 2017 08:57 Go to previous message
Guilhaume Pinard-Legry is currently offline Guilhaume Pinard-LegryFriend
Messages: 2
Registered: September 2017
Junior Member
Thanks a lot for your reply, it lead me to the solution: my custom scheme was not taken into account
I already had a preferences.ini file with
org.eclipse.ui/KEY_CONFIGURATION_ID=foo.KeyConfiguration
but there was missing the following property defined on the product in my plugin.xml:
<property
name="preferenceCustomization"
value="preferences.ini">
</property>
Thanks again !!
Previous Topic:Automatic Updates for a custom RCP product with Tycho build and own p2 repository
Next Topic:Java 8 and Java 9 interoperability
Goto Forum:
  


Current Time: Sat Sep 22 01:11:28 GMT 2018

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

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

Back to the top