Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » How does one disable default key bindings?
How does one disable default key bindings? [message #460014] Mon, 11 December 2006 11:59 Go to next message
Eclipse UserFriend
Originally posted by: arlanf.sbcglobal.net

Hello all,

I've generated the simple "Hello RCP" plug-in project in my eclipse
workbench. I've noticed that during its execution, when I press Ctrl-N,
a New Wizard dialog is displayed.

How does one go about disabling this key binding (as well as any others
that might be configured)? I've made a guess that creating my own key
configuration that doesn't have any key bindings attached to it is one
possible path to take, but for some reason I can't get this to work...

Thanks for any help!
--arlanf
Re: How does one disable default key bindings? [message #460016 is a reply to message #460014] Mon, 11 December 2006 12:20 Go to previous messageGo to next message
Eclipse UserFriend
Create your own scheme, and then set that as the active scheme. There's
a preference, I believe.

And you can create schemes in the org.eclipse.ui.bindings extension point.

Later,
PW
Re: How does one disable default key bindings? [message #460020 is a reply to message #460016] Mon, 11 December 2006 14:03 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: arlanf.sbcglobal.net

Great, thanks for the response Paul!

There still seems to be some disconnect that I'm not doing. However
I've defined my scheme in my plugin.xml, it still recognizes the default
key bindings in my runtime rcp application.

I've defined a scheme in my plugin.xml file:

<extension point="org.eclipse.ui.bindings">
<scheme
id="mytest.keyScheme"
name="My Test Scheme"
description="My Test Scheme Description"/>
</extension>

I've also tried defining a parent for the scheme using a key
configuration as the parent:

<extension point="org.eclipse.ui.commands">
<keyConfiguration
description="My Test Config Description"
id="mytest.keyConfig"
name="My Test Config"/>
</extension>

<extension point="org.eclipse.ui.bindings">
<scheme
id="mytest.keyScheme"
name="My Test Scheme"
description="My Test Scheme Description"
parentId="mytest.keyConfig"/>
</extension>


I couldn't find a way to programmatically set the scheme - I tried setting

org.eclipse.ui/KEY_CONFIGURATION_ID=mytest.keyScheme

in a filed named "plugin_customization.ini" as per documentation that
I've read, but perhaps this isn't the correct name or there is a setting
someplace that points to this .ini file that I'm not setting.

Regardless of what tweaking I do, Ctrl-N still pops up a new wizard
dialog, so I'm missing something someplace.

Any thoughts?

Again, many thanks!
--arlanf

Paul Webster wrote:
> Create your own scheme, and then set that as the active scheme. There's
> a preference, I believe.
>
> And you can create schemes in the org.eclipse.ui.bindings extension point.
>
> Later,
> PW
Re: How does one disable default key bindings? [message #460021 is a reply to message #460020] Mon, 11 December 2006 14:06 Go to previous message
Eclipse UserFriend
Arlan Finestead wrote:
> Great, thanks for the response Paul!
>
> There still seems to be some disconnect that I'm not doing. However
> I've defined my scheme in my plugin.xml, it still recognizes the default
> key bindings in my runtime rcp application.
>
> I've defined a scheme in my plugin.xml file:
>
> <extension point="org.eclipse.ui.bindings">
> <scheme
> id="mytest.keyScheme"
> name="My Test Scheme"
> description="My Test Scheme Description"/>
> </extension>
>

This looks fine

>
> I couldn't find a way to programmatically set the scheme - I tried setting
>
> org.eclipse.ui/KEY_CONFIGURATION_ID=mytest.keyScheme
>
> in a filed named "plugin_customization.ini" as per documentation that
> I've read, but perhaps this isn't the correct name or there is a setting
> someplace that points to this .ini file that I'm not setting.


Right, but your RCP app will only read the plugin_customization.ini if
you define it in your product ... do a search of the newsgroup archives
for examples.


Later,
PW
Previous Topic:Unhandled event loop exception when trying to use a singleton
Next Topic:classpath
Goto Forum:
  


Current Time: Tue Apr 15 03:03:27 EDT 2025

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

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

Back to the top