Suppress Eclipse default key bindings in RCP application

Veröffentlicht von

In my current project, the default key bindings from Eclipse where active. When I hit CTRL + N (CMD +N on a MAC) for a new file the “New Wizard” showed up. I defined my own key bindings, but the Eclipse key bindings seemed to overrule them. Trauriges Smiley

image

Not what I had in mind. And who knows what other key bindings are waiting in the background, just showing up and scaring my customers.

But how to get rid of these?

In your plugin XML, add a new extension point, enter id and name:

image

Next step, create a “plugin_customization.ini” file in the directory where your plugin.xml file is, with the following content:

image

Now we need to create a product that uses this ini file:

image

**Warning: **After the product was created, the ini file was a little bit mixed up, because Eclipse added 2 lines. So correct the file if needed, otherwise the key bindings will not work.

Now start your product, the key bindings should be correct now:

image

If not, clear the workspace of your application first.

Kommentar hinterlassen

Deine E-Mail-Adresse wird nicht veröffentlicht. Erforderliche Felder sind mit * markiert.