Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Disable key-binding conditionally?
Disable key-binding conditionally? [message #1256579] Tue, 25 February 2014 15:28
Fred Bricon is currently offline Fred BriconFriend
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
Previous Topic:Project running only in 'run' mode
Next Topic:restore view in rcp application
Goto Forum:
  


Current Time: Wed Apr 24 14:23:40 GMT 2024

Powered by FUDForum. Page generated in 0.02705 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top