Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » HandledMenuItem/Handled Tool Item with parameter disables KeyBindings
HandledMenuItem/Handled Tool Item with parameter disables KeyBindings [message #989872] Sat, 08 December 2012 22:14 Go to next message
Benno Luthiger is currently offline Benno LuthigerFriend
Messages: 10
Registered: December 2012
Junior Member
In the e4 application model I define a command with a parameter. After that I create a handler for this command and a key binding referencing the same command.
After that, I create e.g. a toolbar and add a "Handled Tool Item" which triggers the command defined before.

When I start the application, I see the toolbar with the item displayed and when I move my mouse over the toolbar item I see the item's tooltip displayed together with the key binding I attached with the command. When I enter the key sequence the key binding is defined for, the handler is executed. This is the expected behavior.

However, when I expand the "Handled Tool Item" and add a parameter with the name of the parameter I defined in the command, this behavior changes. There's no key sequence displayed with the tooltip and entering the key sequence doesn't trigger the handler anymore.

Is this behavior a bug?
If not, what's the intention of this behavior?
Re: HandledMenuItem/Handled Tool Item with parameter disables KeyBindings [message #989906 is a reply to message #989872] Sun, 09 December 2012 19:52 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
Has the KeyBinding the same command-parameter, else please file a
bugzilla with an example attached.

Tom

Am 09.12.12 17:12, schrieb Benno Luthiger:
> In the e4 application model I define a command with a parameter. After
> that I create a handler for this command and a key binding referencing
> the same command.
> After that, I create e.g. a toolbar and add a "Handled Tool Item" which
> triggers the command defined before.
>
> When I start the application, I see the toolbar with the item displayed
> and when I move my mouse over the toolbar item I see the item's tooltip
> displayed together with the key binding I attached with the command.
> When I enter the key sequence the key binding is defined for, the
> handler is executed. This is the expected behavior.
>
> However, when I expand the "Handled Tool Item" and add a parameter with
> the name of the parameter I defined in the command, this behavior
> changes. There's no key sequence displayed with the tooltip and entering
> the key sequence doesn't trigger the handler anymore.
>
> Is this behavior a bug?
> If not, what's the intention of this behavior?
>
Re: HandledMenuItem/Handled Tool Item with parameter disables KeyBindings [message #990097 is a reply to message #989906] Mon, 10 December 2012 21:07 Go to previous message
Benno Luthiger is currently offline Benno LuthigerFriend
Messages: 10
Registered: December 2012
Junior Member
> Has the KeyBinding the same command-parameter, else please file a
> bugzilla with an example attached.

Done, see https://bugs.eclipse.org/bugs/show_bug.cgi?id=396223

Benno
Previous Topic:PartDescriptors and Parts: dublicate data problem
Next Topic:How to listen for an activation of a successor IEclipseContext?
Goto Forum:
  


Current Time: Tue Apr 23 08:41:00 GMT 2024

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

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

Back to the top