Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » MenuItem accelerator text
MenuItem accelerator text [message #1062654] Mon, 10 June 2013 09:25 Go to next message
Yury Mising name is currently offline Yury Mising nameFriend
Messages: 95
Registered: May 2010
Location: Russia
Member
Predefined eclipse menu items are displayed without full accelerator text. For example, action File->Save is displayed with text "Save S" instead of "Save Ctrl+S".
The cause of this is in org.eclipse.jface.bindings.keys.formatting.NativeKeyFormatter.sortModifierKeys(int)

protected int[] sortModifierKeys(final int modifierKeys) {
...

		if (Util.isWindows()) {
...

		} else if (Util.isGtk() || Util.isMotif()) {
...

		} else if (Util.isMac()) {
...
		}

		return sortedKeys;
	}


All "if" blocks return false.

How to solve this problem?

Best regards,
Yury.
Re: MenuItem accelerator text [message #1062662 is a reply to message #1062654] Mon, 10 June 2013 09:52 Go to previous messageGo to next message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 2426
Registered: July 2009
Location: Sofia, Bulgaria
Senior Member
Hi Yury,
interesting finding :-). In RAP SWT.getPlatform() returns "rap".
Probably the correct fix will be to add a RAP specific "else if"... or
simply default "else" that behaves as Windows for example. Or...
if (Util.isWindows() || "rap".equals( SWT.getPlatform() )) {
What do you think? Please open an enhancement request and we could
discuss the possibilities there.
Best,
Ivan

On 6/10/2013 12:25 PM, Yury Mising name wrote:
> Predefined eclipse menu items are displayed without full accelerator
> text. For example, action File->Save is displayed with text "Save S"
> instead of "Save Ctrl+S".
> The cause of this is in
> org.eclipse.jface.bindings.keys.formatting.NativeKeyFormatter.sortModifierKeys(int)
>
>
> protected int[] sortModifierKeys(final int modifierKeys) {
> ..
>
> if (Util.isWindows()) {
> ..
>
> } else if (Util.isGtk() || Util.isMotif()) {
> ..
>
> } else if (Util.isMac()) {
> ..
> }
>
> return sortedKeys;
> }
>
>
> All "if" blocks return false.
>
> How to solve this problem?
>
> Best regards,
> Yury.

--
Ivan Furnadjiev

Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Re: MenuItem accelerator text [message #1062666 is a reply to message #1062662] Mon, 10 June 2013 10:07 Go to previous message
Yury Mising name is currently offline Yury Mising nameFriend
Messages: 95
Registered: May 2010
Location: Russia
Member
Hi, Ivan.

I've reported https://bugs.eclipse.org/bugs/show_bug.cgi?id=410319

Best regards,
Yury.
Previous Topic:Import the Incubator Projects
Next Topic:Tomcat hangs on shutdown
Goto Forum:
  


Current Time: Thu Apr 25 11:41:12 GMT 2024

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

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

Back to the top