Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » e(fx)clipse » menu mnemonics
menu mnemonics [message #1128418] Mon, 07 October 2013 17:16 Go to next message
Dennis Lee is currently offline Dennis Lee
Messages: 32
Registered: September 2013
Member
In standard e4 application, it is possible to assign mnemonic to the menu item by put ampersand (&) to the letter like "E&xit".

It seems it is not working with e(fx)clipse.

Thanks
Re: menu mnemonics [message #1128518 is a reply to message #1128418] Mon, 07 October 2013 19:42 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas Schindl
Messages: 5396
Registered: July 2009
Senior Member
JavaFX uses _ for mnemonics - I'm uncertain whether the renderer should
replace & through _ automagically, leanig towards no.

Tom

On 07.10.13 19:16, Dennis Lee wrote:
> In standard e4 application, it is possible to assign mnemonic to the
> menu item by put ampersand (&) to the letter like "E&xit".
>
> It seems it is not working with e(fx)clipse.
>
> Thanks
>
Re: menu mnemonics [message #1128532 is a reply to message #1128518] Mon, 07 October 2013 20:05 Go to previous messageGo to next message
Dennis Lee is currently offline Dennis Lee
Messages: 32
Registered: September 2013
Member
I think _ is good for me. It seems _ does not work with menu item thought. Menu item does not work with Mnemonics field either.

The toolbar is work with _. I didn't know about it. Thanks a lot.
Re: menu mnemonics [message #1128536 is a reply to message #1128532] Mon, 07 October 2013 20:06 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas Schindl
Messages: 5396
Registered: July 2009
Senior Member
on what platform does _ not work for menuitems?

Tom

On 07.10.13 22:05, Dennis Lee wrote:
> I think _ is good for me. It seems _ does not work with menu item
> thought. Menu item does not work with Mnemonics field either.
> The toolbar is work with _. I didn't know about it. Thanks a lot.
Re: menu mnemonics [message #1128545 is a reply to message #1128536] Mon, 07 October 2013 20:18 Go to previous messageGo to next message
Dennis Lee is currently offline Dennis Lee
Messages: 32
Registered: September 2013
Member
I should have mentioned.

It is Windows 7 JDK 8 Build b109. Eclipse 4.3.1. All of them is 64 bit.

And latest (a few minutes ago) e(fx)clipse run-time.

[Updated on: Mon, 07 October 2013 20:19]

Report message to a moderator

Re: menu mnemonics [message #1128550 is a reply to message #1128545] Mon, 07 October 2013 20:24 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas Schindl
Messages: 5396
Registered: July 2009
Senior Member
have you tried a pure JavaFX app does it work there?

Tom

On 07.10.13 22:18, Dennis Lee wrote:
> I should have mentioned.
> It is Windows 7 JDK 8 Build b109. Eclipse 4.3.1. All of the is 64 bit.
>
> And latest (a few minutes ago) e(fx)clipse run-time.
Re: menu mnemonics [message #1128558 is a reply to message #1128550] Mon, 07 October 2013 20:33 Go to previous messageGo to next message
Dennis Lee is currently offline Dennis Lee
Messages: 32
Registered: September 2013
Member
Hi Tom,

I think I was confused with something else. It is actually working. I thought menu mnemonics should display short cut key besides the menu but that is something else.

Yes _ work with menu mnemonics. Sorry about all confusion I made and thank again for your help.
Re: menu mnemonics [message #1128584 is a reply to message #1128558] Mon, 07 October 2013 21:09 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas Schindl
Messages: 5396
Registered: July 2009
Senior Member
On 07.10.13 22:33, Dennis Lee wrote:
> Hi Tom,
>
> I think I was confused with something else. It is actually working. I
> thought menu mnemonics should display short cut key besides the menu but
> that is something else.

those are keybindings - we don't yet support showing bound keys in the
menu, i have filed https://bugs.eclipse.org/bugs/show_bug.cgi?id=418875
and scheduled it for 1.0

Tom
Re: menu mnemonics [message #1128624 is a reply to message #1128584] Mon, 07 October 2013 22:07 Go to previous messageGo to next message
Dennis Lee is currently offline Dennis Lee
Messages: 32
Registered: September 2013
Member
That's great! I didn't even know key binding is not working but I think eventually I need it some time.

[Updated on: Mon, 07 October 2013 22:07]

Report message to a moderator

Re: menu mnemonics [message #1128632 is a reply to message #1128624] Mon, 07 October 2013 22:14 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas Schindl
Messages: 5396
Registered: July 2009
Senior Member
KeyBindings do work (they did since a long time), what did not work was
that the binding is shown next to the item but what should i say: It was
an easy fix and so i just pushed it to master, build just kicked off.

Naturally they only work with handled menu items, so if you have a
MenuItem bound to a command and a keybinding is bound to the same
command you should now see the trigger sequence in the menu-item.

Need to see if we show them as well on the toolitems later on, time to
sleep.

Tom

On 08.10.13 00:07, Dennis Lee wrote:
> That's great! I didn't even know binding is not working but I think
> eventually I need it some time.
Re: menu mnemonics [message #1128655 is a reply to message #1128632] Mon, 07 October 2013 22:50 Go to previous messageGo to next message
Dennis Lee is currently offline Dennis Lee
Messages: 32
Registered: September 2013
Member
I just tried and saw it working. Displayed besides menu items and run the command.
Re: menu mnemonics [message #1173533 is a reply to message #1128418] Wed, 06 November 2013 15:38 Go to previous messageGo to next message
Dmitriy Shishkin is currently offline Dmitriy Shishkin
Messages: 20
Registered: May 2012
Junior Member
Sorry, but mnemonics works only for Latin characters and does not work for Cyrillic
Re: menu mnemonics [message #1173577 is a reply to message #1173533] Wed, 06 November 2013 16:15 Go to previous message
Thomas Schindl is currently offline Thomas Schindl
Messages: 5396
Registered: July 2009
Senior Member
So did you try in a pure fx-app? Do they work there?

Tom

On 06.11.13 16:38, Dmitriy Shishkin wrote:
> Sorry, but mnemonics works only for Latin characters and does not work
> for Cyrillic
Previous Topic:Dependency Injection in Controller Classes
Next Topic:resourcefile not found at runtime
Goto Forum:
  


Current Time: Mon Oct 20 04:23:53 GMT 2014

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

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