Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Jface Accelerator Not working untill menu is popped once
Jface Accelerator Not working untill menu is popped once [message #328659] Fri, 30 May 2008 11:15 Go to next message
Eclipse UserFriend
Hi there,

I have added accelerators to main main and they are not working until
menus are popped once ?

Is there any thing I am missing.

I even tried the basicEditor 2 example from
http://www.java2s.com/Code/Java/SWT-JFace-Eclipse/BasicEdito r2.htm
and same accelerator does'nt work unless menus are popped once.

Thanks
Jary
Re: Jface Accelerator Not working untill menu is popped once [message #328924 is a reply to message #328659] Fri, 06 June 2008 14:12 Go to previous message
Eclipse UserFriend
JFace MenuManagers don't create the widgets until the first SWT.Show ...
if you are depending on that to create your accelerator keys, you can
always use one of the MenuManager#update(*) methods to force their creation.

PW

--
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Menu_Contributions
http://wiki.eclipse.org/Menus_Extension_Mapping
http://help.eclipse.org/help33/index.jsp?topic=/org.eclipse. platform.doc.isv/guide/workbench.htm
Previous Topic:Need help to get ContextMenu for Shell Trim
Next Topic:How can i construct editor's container (i.e. IEditorSite)?
Goto Forum:
  


Current Time: Wed Apr 16 00:59:31 EDT 2025

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

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

Back to the top