Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » ViewPart setAccelerator method
ViewPart setAccelerator method [message #463522] Tue, 13 February 2007 04:48 Go to next message
Eclipse UserFriend
I can't work setAccelerator method for toolbar and menu action of ViewPart.

It is very clearly but doent work. I am using this like

addAction.setAccelerator(SWT.F1);



Why is it work?.



Thank You
Re: ViewPart setAccelerator method [message #463541 is a reply to message #463522] Tue, 13 February 2007 08:06 Go to previous message
Eclipse UserFriend
Originally posted by: peter_ossipov.mail.ru

Because it never worked as far as I am aware. You know, this methods are
not used for this purpose. I actually never used them at all.
You should be using retargetable action or commands + key binding. It is
a big story, but that is the way it is done in eclipse. Oh, you can add
a key listener and activate your action when that key is pressed, but
this is the least flexible way.
Cenk Dundar wrote:
> I can't work setAccelerator method for toolbar and menu action of ViewPart.
>
> It is very clearly but doent work. I am using this like
>
> addAction.setAccelerator(SWT.F1);
>
>
>
> Why is it work?.
>
>
>
> Thank You
>
>
>
>
>
>
>
Previous Topic:How to remove run and source from menu
Next Topic:workspaces
Goto Forum:
  


Current Time: Sun Mar 16 16:30:53 EDT 2025

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

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

Back to the top