Rameshwar Nagpure
Rameshwar Nagpure

Reputation: 174

Adding key Binding in e4 application

I am adding Key Bindings in Application.e4xmi. In Binding Tables (In window and Dialogs)->BindingTable->KeyBinding . in the Sequence Field I am taking M1+I, and in the Command Field I am putting Command ID When I run the application and press CTRL+I. the command is not executing. Please help me.

Upvotes: 1

Views: 2165

Answers (2)

WolfgangS
WolfgangS

Reputation: 164

Maybe it is a bit late to solve your problem - I had a similar one. This is what worked for me:

Eclipse 4 came to be known to erase commands not tagged with "type:user" (see https://www.eclipse.org/forums/index.php/t/550175/).

Find the command in your Application.e4xmi and add the tag just like this:

<bindings xmi:id="_jC5aUCliEeWI4LgfuTRFhQ" elementId="your.command.id" keySequence="M1+I" command="_Bs2HEDgcEeSZkY-KjLWaPQ">
    <tags>type:user</tags>
</bindings>

Upvotes: 5

Matthias H
Matthias H

Reputation: 1310

Create an BindingContex

Create a BindingTable for this Context

Add your Binding

Add your BindingContext to your Window or Part

Upvotes: 0

Related Questions