Reputation: 174
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
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
Reputation: 1310
Create an BindingContex
Create a BindingTable for this Context
Add your Binding
Add your BindingContext to your Window or Part
Upvotes: 0