| 
| How to use Action with popup-menu and accelarator keys? [message #60500] | Tue, 03 June 2003 10:07  |  | 
| Eclipse User  |  |  |  |  | Originally posted by: bodo.t.genion.de 
 i would realy appreciate an example for using the jFace Action class!
 i did not found anything how to use in the docu or the "official" examples.
 
 the only thing i found is the "Adressbook" example. this does NOT use
 Action and moreover  the accelarator keys show in its Edit - menu (e.g.
 Ctrl + E) do not work. is this a bug ?
 i need to have accelarator key for a pop-up menu in a TreeViewer plus i
 would like to use the Action class. but don't know how.
 
 bodo
 
 
 >
 >
 > Ivan schrieb:
 >
 >> ohhh...... actually I prefer JFace more than SWT because JFace really
 >> encapsulate and extends
 >> a lot of functionality for developers.
 >> well....sorry for that.
 >>
 >> F F wrote:
 >>
 >>> plain SWT
 >>>
 >>>     "Ivan" <ivan001@pd.jaring.my <mailto:ivan001@pd.jaring.my>>
 >>>     schrieb im Newsbeitrag news:3EC501AB.5070802@pd.jaring.my...
 >>>     sorry for late repply~ hmm.... are u using JFace or just a plain
 >>>     SWT ? because Action required
 >>>     JFace
 >>>
 >>>     F F wrote:
 >>>
 >>>>     sory, but i not realy understand how to implement Action...
 >>>>     may be small example ... pls
 >>>>     thnx
 >>>>
 >>>>         "Ivan" <ivan001@pd.jaring.my <mailto:ivan001@pd.jaring.my>>
 >>>>         schrieb im Newsbeitrag news:3EC23E46.4040705@pd.jaring.my...
 >>>>         check it out Action object
 >>>>
 >>>>         F F wrote:
 >>>>
 >>>>> it's realy bad....
 >>>>>
 >>>>> "Alun" <evansac@hotmail.com> schrieb im Newsbeitrag
 >>>>> news:b9rnmg$l51$1@rogue.oti.com...
 >>>>>
 >>>>>
 >>>>>> You can't. Not since the addFilter method in the Display class was
 >>>>>> made non-public in release 2.1. It's a pain. The only way I'm aware
 >>>>>> of now is to add a KeyListener to every control, which is ugly.
 >>>>>>
 >>>>>> Cheers,
 >>>>>>
 >>>>>> Alun
 >>>>>>
 >>>>>> F F wrote:
 >>>>>>
 >>>>>>
 >>>>>>
 >>>>>>> Hi all,
 >>>>>>> how can i catch _global_ keyEvent, like Ctrl + F11 in eclipse ?
 >>>>>>> thanx
 >>>>>>>
 >>>>>>
 >>>>>>
 >>>>>
 >>>>>
 >>>>>
 >>>>>
 >>>>>
 >>>>
 >>>
 >>
 >
 |  |  |  | 
| 
| Re: How to use Action with popup-menu and accelarator keys? [message #60564 is a reply to message #60500] | Tue, 03 June 2003 10:47  |  | 
| Eclipse User  |  |  |  |  | Originally posted by: tom.eicher.gmx.ch.nodomain 
 Have a look at eclipse help:
 Platform Plug-in Developer Guide->Programmer's Guide -> Plugging into the
 workbench
 
 Plus, there are a number of threads in eclipse.tools and eclipse.platform
 about inserting actions and keybindings etc.
 
 -tom
 
 "bodo" <bodo.t@genion.de> wrote in message
 news:3EDCAB8D.5020408@genion.de...
 > i would realy appreciate an example for using the jFace Action class!
 > i did not found anything how to use in the docu or the "official"
 examples.
 >
 > the only thing i found is the "Adressbook" example. this does NOT use
 > Action and moreover  the accelarator keys show in its Edit - menu (e.g.
 > Ctrl + E) do not work. is this a bug ?
 > i need to have accelarator key for a pop-up menu in a TreeViewer plus i
 > would like to use the Action class. but don't know how.
 >
 > bodo
 >
 >
 >  >
 >  >
 >  > Ivan schrieb:
 >  >
 >  >> ohhh...... actually I prefer JFace more than SWT because JFace really
 >  >> encapsulate and extends
 >  >> a lot of functionality for developers.
 >  >> well....sorry for that.
 >  >>
 >  >> F F wrote:
 >  >>
 >  >>> plain SWT
 >  >>>
 >  >>>     "Ivan" <ivan001@pd.jaring.my <mailto:ivan001@pd.jaring.my>>
 >  >>>     schrieb im Newsbeitrag news:3EC501AB.5070802@pd.jaring.my...
 >  >>>     sorry for late repply~ hmm.... are u using JFace or just a plain
 >  >>>     SWT ? because Action required
 >  >>>     JFace
 >  >>>
 >  >>>     F F wrote:
 >  >>>
 >  >>>>     sory, but i not realy understand how to implement Action...
 >  >>>>     may be small example ... pls
 >  >>>>     thnx
 >  >>>>
 >  >>>>         "Ivan" <ivan001@pd.jaring.my <mailto:ivan001@pd.jaring.my>>
 >  >>>>         schrieb im Newsbeitrag news:3EC23E46.4040705@pd.jaring.my...
 >  >>>>         check it out Action object
 >  >>>>
 >  >>>>         F F wrote:
 >  >>>>
 >  >>>>> it's realy bad....
 >  >>>>>
 >  >>>>> "Alun" <evansac@hotmail.com> schrieb im Newsbeitrag
 >  >>>>> news:b9rnmg$l51$1@rogue.oti.com...
 >  >>>>>
 >  >>>>>
 >  >>>>>> You can't. Not since the addFilter method in the Display class was
 >  >>>>>> made non-public in release 2.1. It's a pain. The only way I'm
 aware
 >  >>>>>> of now is to add a KeyListener to every control, which is ugly.
 >  >>>>>>
 >  >>>>>> Cheers,
 >  >>>>>>
 >  >>>>>> Alun
 >  >>>>>>
 >  >>>>>> F F wrote:
 >  >>>>>>
 >  >>>>>>
 >  >>>>>>
 >  >>>>>>> Hi all,
 >  >>>>>>> how can i catch _global_ keyEvent, like Ctrl + F11 in eclipse ?
 >  >>>>>>> thanx
 >  >>>>>>>
 >  >>>>>>
 >  >>>>>>
 >  >>>>>
 >  >>>>>
 >  >>>>>
 >  >>>>>
 >  >>>>>
 >  >>>>
 >  >>>
 >  >>
 >  >
 >
 |  |  |  | 
Powered by 
FUDForum. Page generated in 0.27463 seconds