Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Getting Key Bindings to work with Text Widget in Coolbar
Getting Key Bindings to work with Text Widget in Coolbar [message #328142] Thu, 15 May 2008 06:19 Go to next message
Eclipse UserFriend
We have a Text widget wrapped in a ControlContribution and added to the
workbench Coolbar. We have hooked in standard cut/copy/paste actions to
the text widget using TextActionHandler. The key bindings do not work.
If the same ControlContribution is added to a view then all works as
expected, so our assumption is that the key binding manager is not
recognising the Coolbar as a valid context. How can this problem be fixed?

Thanks,

James
Re: Getting Key Bindings to work with Text Widget in Coolbar [message #328154 is a reply to message #328142] Thu, 15 May 2008 13:58 Go to previous messageGo to next message
Eclipse UserFriend
Bounce! Any thoughts?

James Willans wrote:
> We have a Text widget wrapped in a ControlContribution and added to the
> workbench Coolbar. We have hooked in standard cut/copy/paste actions to
> the text widget using TextActionHandler. The key bindings do not work.
> If the same ControlContribution is added to a view then all works as
> expected, so our assumption is that the key binding manager is not
> recognising the Coolbar as a valid context. How can this problem be fixed?
>
> Thanks,
>
> James
Re: Getting Key Bindings to work with Text Widget in Coolbar [message #328917 is a reply to message #328154] Fri, 06 June 2008 13:30 Go to previous message
Eclipse UserFriend
In 3.3 and 3.4 you get around that using the
org.eclipse.ui.swt.IFocusService

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:contribute to status line
Next Topic:Extrange behaviours in Ganymedes M7 workbench
Goto Forum:
  


Current Time: Thu May 01 03:22:43 EDT 2025

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

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

Back to the top