Disable key-binding conditionally? [message #1256579] |
Tue, 25 February 2014 15:28 |
Fred Bricon Messages: 14 Registered: July 2009 |
Junior Member |
|
|
Hi,
We (JBoss Tools team) are contributing a feature to m2e[1] that uses key-binding to execute some command :
<extension
point="org.eclipse.ui.bindings">
<key
commandId="org.jboss.tools.maven.ui.commands.selectMavenProfileCommand"
contextId="org.eclipse.ui.contexts.window"
schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
sequence="Ctrl+Alt+P">
</key>
</extension>
We've considered preventing the next JBoss feature version to be installed along m2e 1.5 (receiving the contribution) to prevent conflicts in functionality and key binding.
However that means our users won't be able to update to the next version of m2e because of version range conflicts (hopefully the p2 remediation wizard should kick in to streamline that)
Anyway, another idea we're toying with, is to disable our command and menu programmatically (seems easy) but also the matching key binding. That, I have no idea how to do. Is it even possible?
[1] https://bugs.eclipse.org/bugs/show_bug.cgi?id=428094
Fred Bricon
|
|
|
Powered by
FUDForum. Page generated in 0.02705 seconds