Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-swt-dev] Key listener and Global actions in Eclipse.


The SWT way to do it is Display.addFilter(int, Listener).
Carolyn



"Arnaud De Muyser" <ademuyser@xxxxxxxxxx>
Sent by: platform-swt-dev-admin@xxxxxxxxxxx

02/23/2004 10:00 AM

Please respond to
platform-swt-dev

To
platform-swt-dev@xxxxxxxxxxx
cc
Subject
Re: [platform-swt-dev] Key listener and Global actions in Eclipse.






I don't want t hook a handler in Navigation, I just want to receive key
stroke
into my widgets even if there are one (or more) Actions bound to the keys
I expect.


|---------+---------------------------------->
|         |           Nick                   |
|         |           Edgar/Ottawa/IBM@IBMCA |
|         |           Sent by:               |
|         |           platform-swt-dev-admin@|
|         |           eclipse.org            |
|         |                                  |
|         |                                  |
|         |           23/02/2004 15:33       |
|         |           Please respond to      |
|         |           platform-swt-dev       |
|         |                                  |
|---------+---------------------------------->
 >---------------------------------------------------------------------------------------------------------------------|
 |                                                                                                                     |
 |       To:       platform-swt-dev@xxxxxxxxxxx                                                                        |
 |       cc:                                                                                                           |
 |       Subject:  Re: [platform-swt-dev] Key listener and Global actions in Eclipse.                                  |
 |                                                                                                                     |
 >---------------------------------------------------------------------------------------------------------------------|




Or if you just want to hook a handler for the existing Back/Forward
actions (menu items Navigate > Back and Navigate > Forward, which are
bound to Alt+Left Arrow and Alt+Right Arrow by default), use:
myEditorOrView.getSite().getActionBars().
setGlobalActionHandler(ActionFactory.BACK.getId(), handlingAction);






Douglas Pollock <douglas.pollock@xxxxxxxx>
Sent by: platform-swt-dev-admin@xxxxxxxxxxx
02/23/2004 09:21 AM
Please respond to
platform-swt-dev


To
platform-swt-dev@xxxxxxxxxxx
cc

Subject
Re: [platform-swt-dev] Key listener and Global actions in Eclipse.






-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On February 23, 2004 07:22 am, Arnaud De Muyser wrote:
> Is there a way to get the key stroke prior Eclipse's binding service ?

These kinds of questions should be asked on the newsgroup.

workbench.getCommandSupport().setKeyFilterEnabled(false);

Though IWorkbenchCommandSupport is still experimental API (i.e., we
haven't
decided that this will be the final API for 3.0).  If you have comments
about
this API (e.g., missing functionality, etc.), please open a bug report
against Platform UI.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)

iD8DBQFAOgxhLhh1LVU8SusRAv5GAJ9C4M09TTdN7F8TUewrb4lTlLH8EwCfa4GS
6Lt0+GVOCWKhCh6xS6ITn68=
=f1x1
-----END PGP SIGNATURE-----
_______________________________________________
platform-swt-dev mailing list
platform-swt-dev@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/platform-swt-dev


_______________________________________________
platform-swt-dev mailing list
platform-swt-dev@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/platform-swt-dev





_______________________________________________
platform-swt-dev mailing list
platform-swt-dev@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/platform-swt-dev


Back to the top