[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.platform.rcp] How to set default key bindings?
|
Hi there,
I have an RCP (3.2.1) application that is currently a single feature
comprised of a single plug-in. All actions are linked to commands in my
plugin.xml as follows:
<extension
point="org.eclipse.ui.commands">
<category
id="com.brandonkane.category.x"
name="x"/>
<command
categoryId="com.brandonkane.category.x"
id="com.brandonkane.x.gui.actions.SomeAction"
name="Perform Action"/>
</extension>
I then have a set of key bindings and a scheme like this:
<extension
point="org.eclipse.ui.bindings">
<scheme
id="com.brandonkane.scheme1"
name="scheme1"/>
<key
commandId="com.brandonkane.x.gui.actions.SomeAction"
schemeId="com.brandonkane.scheme1"
sequence="M1+G"/>
</extension>
When the application is run, none of my key bindings are usable for the
actions. If I go into the preference page
"org.eclipse.ui.ExtensionFactory:newKeysPreferencePage" and choose my
custom scheme then all my key bindings work as desired.
So, a number of questions:
How can I force this scheme to be used? Is there a way through a
property? Or can it be set programmatically?
Is there a way to disable the Default and eMacs schemes that are part of
the default setup?
Thanks in advance, any assistance would be greatly appreciated.
Brandon