Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Command Shortcut on Dialog
Command Shortcut on Dialog [message #523163] Thu, 25 March 2010 08:00 Go to next message
Eclipse UserFriend
Hi,

I have created a command in plugin.xml and used that to add a toolbar button
to a modal dialog window. I can click this button and it will invoke the
command. Now I want to assign a shortcut key to this command using
plugin.xml, I did this using Key bindings but its not working. When I add
this command to the Workbench toolbar, the shortcut key works properly.

Any suggestions on how to assign a shortcut key to a command added to a
modal dialog toolbar?

--
Thanks and Regards

Mustufa Kasidwala
Re: Command Shortcut on Dialog [message #523262 is a reply to message #523163] Thu, 25 March 2010 12:55 Go to previous messageGo to next message
Eclipse UserFriend
On 25/03/10 5:30 PM, Mustufa Kasidwala wrote:
> I have created a command in plugin.xml and used that to add a toolbar button
> to a modal dialog window. I can click this button and it will invoke the
> command. Now I want to assign a shortcut key to this command using
> plugin.xml, I did this using Key bindings but its not working. When I add
> this command to the Workbench toolbar, the shortcut key works properly.
>
> Any suggestions on how to assign a shortcut key to a command added to a
> modal dialog toolbar?

You key's context might be just window. It should be dialog&window

- Prakash
Platform UI Team, IBM

www.eclipse-tips.com
Re: Command Shortcut on Dialog [message #525652 is a reply to message #523262] Wed, 07 April 2010 02:42 Go to previous message
Eclipse UserFriend
Thanks Prakash,

Setting the context Id to dialogAndWindow worked properly.

--
Thanks and Regards

Mustufa Kasidwala


"Prakash G.R." <grprakash@gmail.com> wrote in message
news:hog4ik$582$1@build.eclipse.org...
> On 25/03/10 5:30 PM, Mustufa Kasidwala wrote:
>> I have created a command in plugin.xml and used that to add a toolbar
>> button
>> to a modal dialog window. I can click this button and it will invoke the
>> command. Now I want to assign a shortcut key to this command using
>> plugin.xml, I did this using Key bindings but its not working. When I add
>> this command to the Workbench toolbar, the shortcut key works properly.
>>
>> Any suggestions on how to assign a shortcut key to a command added to a
>> modal dialog toolbar?
>
> You key's context might be just window. It should be dialog&window
>
> - Prakash
> Platform UI Team, IBM
>
> www.eclipse-tips.com
Previous Topic:Using Java 6 Splash Screen with RCP
Next Topic:Warn about wrong Java version
Goto Forum:
  


Current Time: Thu Jun 12 09:50:30 EDT 2025

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

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

Back to the top