Command Shortcut on Dialog [message #523163] |
Thu, 25 March 2010 08:00  |
Eclipse User |
|
|
|
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 #525652 is a reply to message #523262] |
Wed, 07 April 2010 02:42  |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.05738 seconds