Command Handler + KeyBinding = Freezing [message #668035] |
Tue, 03 May 2011 13:42 |
|
Hi, I am trying to catch a key combination and execute some code. In plugin.xml I define the command, the binding and the handler:
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.4"?>
<plugin>
<extension
point="org.eclipse.ui.commands">
<command
id="it.polito.softeng.momaapp.customgmfcode.InsertPortion"
name="InsertPortion">
</command>
</extension>
<extension
point="org.eclipse.ui.bindings">
<key
commandId="it.polito.softeng.momaapp.customgmfcode.InsertPortion"
schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
sequence="M1+I">
</key>
</extension>
<extension
point="org.eclipse.ui.handlers">
<handler
class="MyHandler"
commandId="it.polito.softeng.momaapp.customgmfcode.InsertPortion">
</handler>
</extension>
</plugin>
The binding appears under the Key Binding list in my RCP application but when I press ctrl+I the rcp application freezes (no error messages are shown in the console of the Eclipse IDE where I am developing the plugins). Any ideas?
website: http://www.federico-tomassetti.it
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04100 seconds