Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sapphire » Activating general actions only via a key binding
Activating general actions only via a key binding [message #805584] Thu, 23 February 2012 18:31 Go to next message
Roded Bahat is currently offline Roded Bahat
Messages: 152
Registered: August 2011
Senior Member
Hi,
I'd like some general actions, defined in sapphire-extension.xml to be available only through a key binding in the whole editor.
Works fine when there's no context set to the action but then there are a locust of redundant buttons scattered around. Smile
Is there a hint I can't find for hiding the action's button?
Thanks,
Roded
Re: Activating general actions only via a key binding [message #820241 is a reply to message #805584] Tue, 13 March 2012 18:27 Go to previous messageGo to next message
Roded Bahat is currently offline Roded Bahat
Messages: 152
Registered: August 2011
Senior Member
Shamelessly bouncing this.
Is there a way in Sapphire to implement editor wide actions which can be activated only via key binding?
Or should I find a lower, Eclipse oriented solution?
Thanks
Re: Activating general actions only via a key binding [message #820291 is a reply to message #820241] Tue, 13 March 2012 20:23 Go to previous messageGo to next message
Konstantin Komissarchik is currently offline Konstantin Komissarchik
Messages: 940
Registered: July 2009
Senior Member
There isn't a way to do this today.

- Konstantin
Re: Activating general actions only via a key binding [message #820477 is a reply to message #820291] Wed, 14 March 2012 03:09 Go to previous messageGo to next message
Roded Bahat is currently offline Roded Bahat
Messages: 152
Registered: August 2011
Senior Member
Is this a reasonable enhancement request to add a bug for?
Re: Activating general actions only via a key binding [message #820837 is a reply to message #820477] Wed, 14 March 2012 12:24 Go to previous messageGo to next message
Konstantin Komissarchik is currently offline Konstantin Komissarchik
Messages: 940
Registered: July 2009
Senior Member
It seems rather peculiar. For instance, I would be concerned about how users are to discover these actions. I think I would want to see multiple adopters raise a similar requirement before moving forward with putting something like this into the framework...
Re: Activating general actions only via a key binding [message #820842 is a reply to message #820837] Wed, 14 March 2012 12:38 Go to previous messageGo to next message
Roded Bahat is currently offline Roded Bahat
Messages: 152
Registered: August 2011
Senior Member
That's reasonable.
I'll describe the case just as an example:
I've implemented a Find dialog which searches the XML content and selects the relevant outline node.
Understandably, users wish for the dialog to be available by key binding from anywhere in the editor.
Re: Activating general actions only via a key binding [message #820863 is a reply to message #820842] Wed, 14 March 2012 13:08 Go to previous messageGo to next message
Konstantin Komissarchik is currently offline Konstantin Komissarchik
Messages: 940
Registered: July 2009
Senior Member
If I am understanding your scenario correctly... Another way to look at this problem is that key bindings are local-only. Once you've focused on a property editor, you loose key bindings from the editor page. If this wasn't the case, then you could add editor page level action (you'd get a button in the header) and the key binding would work everywhere one the editor page (unless local context's action shadows it).

Re: Activating general actions only via a key binding [message #820871 is a reply to message #820863] Wed, 14 March 2012 13:20 Go to previous messageGo to next message
Roded Bahat is currently offline Roded Bahat
Messages: 152
Registered: August 2011
Senior Member
Very true.
Re: Activating general actions only via a key binding [message #820890 is a reply to message #820871] Wed, 14 March 2012 13:53 Go to previous messageGo to next message
Konstantin Komissarchik is currently offline Konstantin Komissarchik
Messages: 940
Registered: July 2009
Senior Member
If you want to open an enhancement request for that, I don't see any issue with going forward in that direction.
Re: Activating general actions only via a key binding [message #820926 is a reply to message #820890] Wed, 14 March 2012 14:50 Go to previous message
Roded Bahat is currently offline Roded Bahat
Messages: 152
Registered: August 2011
Senior Member
Ok. 374296.
Much obliged Konstantin.
Previous Topic:Reading nodes' labels using Sapphire Expression Language
Next Topic:Using include params in parts' labels
Goto Forum:
  


Current Time: Thu Aug 28 21:36:50 EDT 2014

Powered by FUDForum. Page generated in 0.02197 seconds