Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Sapphire » Activating general actions only via a key binding
Activating general actions only via a key binding [message #805584] Thu, 23 February 2012 23:31 Go to next message
Roded Bahat is currently offline Roded BahatFriend
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 22:27 Go to previous messageGo to next message
Roded Bahat is currently offline Roded BahatFriend
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] Wed, 14 March 2012 00:23 Go to previous messageGo to next message
Konstantin Komissarchik is currently offline Konstantin KomissarchikFriend
Messages: 1077
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 07:09 Go to previous messageGo to next message
Roded Bahat is currently offline Roded BahatFriend
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 16:24 Go to previous messageGo to next message
Konstantin Komissarchik is currently offline Konstantin KomissarchikFriend
Messages: 1077
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 16:38 Go to previous messageGo to next message
Roded Bahat is currently offline Roded BahatFriend
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 17:08 Go to previous messageGo to next message
Konstantin Komissarchik is currently offline Konstantin KomissarchikFriend
Messages: 1077
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 17:20 Go to previous messageGo to next message
Roded Bahat is currently offline Roded BahatFriend
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 17:53 Go to previous messageGo to next message
Konstantin Komissarchik is currently offline Konstantin KomissarchikFriend
Messages: 1077
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 18:50 Go to previous message
Roded Bahat is currently offline Roded BahatFriend
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: Sat Apr 20 03:02:17 GMT 2024

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

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

Back to the top